From 1100a35ed09235d2465a40012cb0dfc44d53cce3 Mon Sep 17 00:00:00 2001 From: Samuel CHNIBER Date: Mon, 6 Jan 2025 22:31:00 +0100 Subject: [PATCH] rollback the SNS Service principal to sns.amazonaws.com --- iam.tf | 2 +- main.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iam.tf b/iam.tf index 859d78d5..280138ea 100644 --- a/iam.tf +++ b/iam.tf @@ -16,7 +16,7 @@ data "aws_iam_policy_document" "sns_feedback" { principals { type = "Service" - identifiers = ["sns.${data.aws_partition.current.dns_suffix}"] + identifiers = ["sns.amazonaws.com"] } } } diff --git a/main.tf b/main.tf index 1a340c91..6493fd70 100644 --- a/main.tf +++ b/main.tf @@ -134,7 +134,7 @@ module "lambda" { allowed_triggers = { AllowExecutionFromSNS = { - principal = "sns.${data.aws_partition.current.dns_suffix}" + principal = "sns.amazonaws.com" source_arn = local.sns_topic_arn } }