Skip to content

Commit ea67a91

Browse files
committed
Revert "Rename "main" SNS topic to "eventsub_topic""
This reverts commit 1a63e68.
1 parent 6bf9774 commit ea67a91

8 files changed

Lines changed: 12 additions & 23 deletions

File tree

infrastructure/terraform/components/api/sns_topic_subscription_eventsub_sqs_letter_updates.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "aws_sns_topic_subscription" "eventsub_sqs_letter_updates" {
2-
topic_arn = module.eventsub.eventsub_topic.arn
2+
topic_arn = module.eventsub.sns_topic.arn
33
protocol = "sqs"
44
endpoint = module.sqs_letter_updates.sqs_queue_arn
55
}

infrastructure/terraform/modules/eventsub/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
| Name | Description |
4141
|------|-------------|
4242
| <a name="output_amendments_topic"></a> [amendments\_topic](#output\_amendments\_topic) | Amendments SNS Topic ARN and Name |
43-
| <a name="output_eventsub_topic"></a> [eventsub\_topic](#output\_eventsub\_topic) | SNS Topic ARN and Name |
4443
| <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 |
44+
| <a name="output_sns_topic"></a> [sns\_topic](#output\_sns\_topic) | SNS Topic ARN and Name |
4545
<!-- vale on -->
4646
<!-- markdownlint-enable -->
4747
<!-- END_TF_DOCS -->

infrastructure/terraform/modules/eventsub/cloudwatch_metric_alarm_sns_delivery_failures.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ resource "aws_cloudwatch_metric_alarm" "sns_delivery_failures" {
1111
treat_missing_data = "notBreaching"
1212

1313
dimensions = {
14-
TopicName = aws_sns_topic.eventsub_topic.name
14+
TopicName = aws_sns_topic.main.name
1515
}
1616
}
1717

infrastructure/terraform/modules/eventsub/moved.tf

Lines changed: 0 additions & 11 deletions
This file was deleted.

infrastructure/terraform/modules/eventsub/outputs.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
output "eventsub_topic" {
1+
output "sns_topic" {
22
description = "SNS Topic ARN and Name"
33
value = {
4-
arn = aws_sns_topic.eventsub_topic.arn
5-
name = aws_sns_topic.eventsub_topic.name
4+
arn = aws_sns_topic.main.arn
5+
name = aws_sns_topic.main.name
66
}
77
}
88

infrastructure/terraform/modules/eventsub/sns_topic_eventsub.tf renamed to infrastructure/terraform/modules/eventsub/sns_topic.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resource "aws_sns_topic" "eventsub_topic" {
1+
resource "aws_sns_topic" "main" {
22
name = local.csi
33
kms_master_key_id = var.kms_key_arn
44

infrastructure/terraform/modules/eventsub/sns_topic_policy_eventsub.tf renamed to infrastructure/terraform/modules/eventsub/sns_topic_policy.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
resource "aws_sns_topic_policy" "eventsub_topic" {
2-
arn = aws_sns_topic.eventsub_topic.arn
1+
resource "aws_sns_topic_policy" "main" {
2+
arn = aws_sns_topic.main.arn
33

44
policy = data.aws_iam_policy_document.sns_topic_policy.json
55
}
@@ -35,7 +35,7 @@ data "aws_iam_policy_document" "sns_topic_policy" {
3535
]
3636

3737
resources = [
38-
aws_sns_topic.eventsub_topic.arn,
38+
aws_sns_topic.main.arn,
3939
]
4040

4141
condition {
@@ -63,7 +63,7 @@ data "aws_iam_policy_document" "sns_topic_policy" {
6363
}
6464

6565
resources = [
66-
aws_sns_topic.eventsub_topic.arn,
66+
aws_sns_topic.main.arn,
6767
]
6868
}
6969
}

infrastructure/terraform/modules/eventsub/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_eventsub" {
22
count = var.enable_event_cache ? 1 : 0
33

4-
topic_arn = aws_sns_topic.eventsub_topic.arn
4+
topic_arn = aws_sns_topic.main.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)