File tree Expand file tree Collapse file tree
infrastructure/modules/eventpub Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11resource "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
You can’t perform that action at this time.
0 commit comments