File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ data "aws_iam_policy_document" "letter_updates_queue_policy" {
4141 condition {
4242 test = " ArnEquals"
4343 variable = " aws:SourceArn"
44- values = [module . eventsub . sns_topic . arn ]
44+ values = [module . eventsub . sns_topic_event_bus . arn ]
4545 }
4646 }
4747
@@ -68,7 +68,7 @@ data "aws_iam_policy_document" "letter_updates_queue_policy" {
6868 condition {
6969 test = " ArnEquals"
7070 variable = " aws:SourceArn"
71- values = [module . eventsub . sns_topic . arn ]
71+ values = [module . eventsub . sns_topic_event_bus . arn ]
7272 }
7373 }
7474}
Original file line number Diff line number Diff line change 11resource "aws_sns_topic_subscription" "allocation_lambda" {
2- topic_arn = module. eventsub . aws_sns_topic . sns_topic_event_bus . arn
2+ topic_arn = module. eventsub . sns_topic_event_bus . arn
33 protocol = " lambda"
44 endpoint = module. allocation_lambda . function_arn
55}
@@ -9,5 +9,5 @@ resource "aws_lambda_permission" "allocation_lambda_sns" {
99 action = " lambda:InvokeFunction"
1010 function_name = module. allocation_lambda . function_name
1111 principal = " sns.amazonaws.com"
12- source_arn = module. eventsub . aws_sns_topic . sns_topic_event_bus . arn
12+ source_arn = module. eventsub . sns_topic_event_bus . arn
1313}
Original file line number Diff line number Diff line change 4040| Name | Description |
4141| ------| -------------|
4242| <a name =" output_s3_bucket_event_cache " ></a > [ s3\_ bucket\_ event\_ cache] ( #output\_ s3\_ bucket\_ event\_ cache ) | S3 Bucket ARN and Name for event cache |
43- | <a name =" output_sns_topic " ></a > [ sns\_ topic] ( #output\_ sns\_ topic ) | SNS Topic ARN and Name |
43+ | <a name =" output_sns_topic_event_bus " ></a > [ sns\_ topic\_ event\_ bus] ( #output\_ sns\_ topic\_ event\_ bus ) | SNS Topic ARN and Name |
44+ | <a name =" output_sns_topic_supplier " ></a > [ sns\_ topic\_ supplier] ( #output\_ sns\_ topic\_ supplier ) | SNS Topic ARN and Name |
4445<!-- vale on -->
4546<!-- markdownlint-enable -->
4647<!-- END_TF_DOCS -->
Original file line number Diff line number Diff line change 1- output "sns_topic " {
1+ output "sns_topic_event_bus " {
22 description = " SNS Topic ARN and Name"
33 value = {
44 arn = aws_sns_topic.sns_topic_event_bus.arn
55 name = aws_sns_topic.sns_topic_event_bus.name
66 }
77}
88
9+ output "sns_topic_supplier" {
10+ description = " SNS Topic ARN and Name"
11+ value = {
12+ arn = aws_sns_topic.sns_topic_supplier.arn
13+ name = aws_sns_topic.sns_topic_supplier.name
14+ }
15+ }
16+
917output "s3_bucket_event_cache" {
1018 description = " S3 Bucket ARN and Name for event cache"
1119 value = var. enable_event_cache ? {
You can’t perform that action at this time.
0 commit comments