Skip to content

Commit

Permalink
rollback the SNS Service principal to sns.amazonaws.com
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel CHNIBER committed Jan 6, 2025
1 parent bc8209c commit 1100a35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 1100a35

Please sign in to comment.