From 649a17395ac01eca10dd626bf23fcc9721faf64a Mon Sep 17 00:00:00 2001 From: Sindhu Date: Thu, 26 Sep 2024 23:57:34 +0100 Subject: [PATCH] Correcting resource name in deny policy --- infrastructure/stacks/application/data.tf | 2 ++ infrastructure/stacks/shared-resources/data.tf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/infrastructure/stacks/application/data.tf b/infrastructure/stacks/application/data.tf index f7aa58cd4..69107eaa1 100644 --- a/infrastructure/stacks/application/data.tf +++ b/infrastructure/stacks/application/data.tf @@ -53,6 +53,7 @@ data "aws_iam_policy_document" "sns_topic_app_alerts_for_slack_access_default_re } statement { + sid = "DenyNonSecureTransport" effect = "Deny" actions = ["sns:Publish"] principals { @@ -80,6 +81,7 @@ data "aws_iam_policy_document" "sns_topic_app_alerts_for_slack_access_alarm_regi } statement { + sid = "DenyNonSecureTransport" effect = "Deny" actions = ["sns:Publish"] principals { diff --git a/infrastructure/stacks/shared-resources/data.tf b/infrastructure/stacks/shared-resources/data.tf index 5e0c41a4f..8e36400e6 100644 --- a/infrastructure/stacks/shared-resources/data.tf +++ b/infrastructure/stacks/shared-resources/data.tf @@ -70,6 +70,7 @@ data "aws_iam_policy_document" "shared_resources_sns_topic_app_alerts_for_slack_ } statement { + sid = "DenyNonSecureTransport" effect = "Deny" actions = ["sns:Publish"] principals { @@ -97,6 +98,7 @@ data "aws_iam_policy_document" "shared_resources_sns_topic_app_alerts_for_slack_ } statement { + sid = "DenyNonSecureTransport" effect = "Deny" actions = ["sns:Publish"] principals {