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" {
2727 }
2828}
2929
30- data "aws_iam_policy_document" "default " {
30+ data "aws_iam_policy_document" "es_logs " {
3131 statement {
3232 actions = [
3333 " logs:CreateLogGroup" ,
@@ -57,7 +57,9 @@ data "aws_iam_policy_document" "default" {
5757 " ${ var . es_domain_arn } /*" ,
5858 ]
5959 }
60+ }
6061
62+ data "aws_iam_policy_document" "sns" {
6163 statement {
6264 actions = [
6365 " sns:Publish" ,
@@ -71,6 +73,11 @@ data "aws_iam_policy_document" "default" {
7173 }
7274}
7375
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+
7481# Modules
7582# --------------------------------------------------------------
7683module "label" {
Original file line number Diff line number Diff line change 11output "security_group_id" {
2- value = " ${ join (" ," ,aws_security_group. default . * . id )} "
2+ value = " ${ join (" ," , aws_security_group. default . * . id )} "
33 description = " Security Group ID of the Lambda "
44}
You can’t perform that action at this time.
0 commit comments