File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ data "aws_iam_policy_document" "assume_role" {
27
27
}
28
28
}
29
29
30
- data "aws_iam_policy_document" "default " {
30
+ data "aws_iam_policy_document" "es_logs " {
31
31
statement {
32
32
actions = [
33
33
" logs:CreateLogGroup" ,
@@ -57,7 +57,9 @@ data "aws_iam_policy_document" "default" {
57
57
" ${ var . es_domain_arn } /*" ,
58
58
]
59
59
}
60
+ }
60
61
62
+ data "aws_iam_policy_document" "sns" {
61
63
statement {
62
64
actions = [
63
65
" sns:Publish" ,
@@ -71,6 +73,11 @@ data "aws_iam_policy_document" "default" {
71
73
}
72
74
}
73
75
76
+ data "aws_iam_policy_document" "default" {
77
+ source_json = " ${ data . aws_iam_policy_document . es_logs . json } "
78
+ override_json = " ${ length (var. sns_arn ) > 0 ? data . aws_iam_policy_document . sns . json : " {}" } "
79
+ }
80
+
74
81
# Modules
75
82
# --------------------------------------------------------------
76
83
module "label" {
Original file line number Diff line number Diff line change 1
1
output "security_group_id" {
2
- value = " ${ join (" ," ,aws_security_group. default . * . id )} "
2
+ value = " ${ join (" ," , aws_security_group. default . * . id )} "
3
3
description = " Security Group ID of the Lambda "
4
4
}
You can’t perform that action at this time.
0 commit comments