Skip to content

Commit 2b90132

Browse files
CCM-10258: Discrete Control and Data SNS Topics
1 parent 458e5f6 commit 2b90132

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

infrastructure/modules/eventpub/lambda_permissions_sns_lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ resource "aws_lambda_permission" "sns_lambda" {
55
action = "lambda:InvokeFunction"
66
function_name = aws_lambda_function.main.function_name
77
principal = "sns.amazonaws.com"
8-
source_arn = aws_sns_topic[each.key].arn
8+
source_arn = aws_sns_topic.main[each.key].arn
99
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
resource "aws_sns_topic_subscription" "lambda" {
22
for_each = local.sns_topics
33

4-
topic_arn = aws_sns_topic[each.key].arn
4+
topic_arn = aws_sns_topic.main[each.key].arn
55
protocol = "lambda"
66
endpoint = aws_lambda_function.main.arn
77
}

0 commit comments

Comments
 (0)