Skip to content

Commit 458e5f6

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

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

infrastructure/modules/eventpub/lambda_function.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ resource "aws_lambda_function" "main" {
2121

2222
environment {
2323
variables = {
24-
DATA_TOPIC_ARN = aws_sns_topic.data.arn
25-
CONTROL_TOPIC_ARN = aws_sns_topic.control.arn
24+
DATA_TOPIC_ARN = aws_sns_topic.main["data"].arn
25+
CONTROL_TOPIC_ARN = aws_sns_topic.main["control"].arn
2626
DATA_PLANE_EVENT_BUS_ARN = var.data_plane_bus_arn
2727
CONTROL_PLANE_EVENT_BUS_ARN = var.control_plane_bus_arn
2828
DLQ_URL = aws_sqs_queue.dlq.url

infrastructure/modules/eventpub/sns_topic_subscription_firehose.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
resource "aws_sns_topic_subscription" "firehose" {
22
for_each = var.enable_event_cache ? 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 = "firehose"
66
subscription_role_arn = aws_iam_role.sns_role.arn
77
endpoint = aws_kinesis_firehose_delivery_stream.main[0].arn

0 commit comments

Comments
 (0)