From f50328520f1de820d46885fe5236bcdc3ac70d4f Mon Sep 17 00:00:00 2001 From: martin-nhs Date: Thu, 15 Feb 2024 12:27:30 +0000 Subject: [PATCH] [PRMT-4482] Added policy statement to enforce HTTPS on SNS topics. --- terraform/sns-topic.tf | 62 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/terraform/sns-topic.tf b/terraform/sns-topic.tf index 60566f93..fbf11ab1 100644 --- a/terraform/sns-topic.tf +++ b/terraform/sns-topic.tf @@ -98,3 +98,65 @@ data "aws_sns_topic" "alarm_notifications" { name = "${var.environment}-alarm-notifications-sns-topic" } +resource "aws_sns_topic_policy" "deny_http" { + for_each = toset(local.sns_arns) + + arn = each.value + + policy = <