File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ No requirements.
3737
3838| Name | Source | Version |
3939| ------| --------| ---------|
40- | <a name =" module_allocation_lambda " ></a > [ allocation\_ lambda] ( #module\_ allocation\_ lambda ) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.26/terraform-lambda.zip | n/a |
41- | <a name =" module_amendments_queue " ></a > [ amendments\_ queue] ( #module\_ amendments\_ queue ) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.26/terraform-sqs.zip | n/a |
4240| <a name =" module_authorizer_lambda " ></a > [ authorizer\_ lambda] ( #module\_ authorizer\_ lambda ) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.26/terraform-lambda.zip | n/a |
4341| <a name =" module_domain_truststore " ></a > [ domain\_ truststore] ( #module\_ domain\_ truststore ) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.26/terraform-s3bucket.zip | n/a |
4442| <a name =" module_eventpub " ></a > [ eventpub] ( #module\_ eventpub ) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.26/terraform-eventpub.zip | n/a |
@@ -57,7 +55,6 @@ No requirements.
5755| <a name =" module_post_mi " ></a > [ post\_ mi] ( #module\_ post\_ mi ) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.26/terraform-lambda.zip | n/a |
5856| <a name =" module_s3bucket_test_letters " ></a > [ s3bucket\_ test\_ letters] ( #module\_ s3bucket\_ test\_ letters ) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.26/terraform-s3bucket.zip | n/a |
5957| <a name =" module_sqs_letter_updates " ></a > [ sqs\_ letter\_ updates] ( #module\_ sqs\_ letter\_ updates ) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.26/terraform-sqs.zip | n/a |
60- | <a name =" module_supplier_requests_queue " ></a > [ supplier\_ requests\_ queue] ( #module\_ supplier\_ requests\_ queue ) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-sqs.zip | n/a |
6158| <a name =" module_supplier_ssl " ></a > [ supplier\_ ssl] ( #module\_ supplier\_ ssl ) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.26/terraform-ssl.zip | n/a |
6259| <a name =" module_upsert_letter " ></a > [ upsert\_ letter] ( #module\_ upsert\_ letter ) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.26/terraform-lambda.zip | n/a |
6360## Outputs
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_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 |
43+ | <a name =" output_sns_topic " ></a > [ sns\_ topic] ( #output\_ sns\_ topic ) | SNS Topic ARN and Name |
4544<!-- vale on -->
4645<!-- markdownlint-enable -->
4746<!-- END_TF_DOCS -->
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ resource "aws_cloudwatch_metric_alarm" "sns_delivery_failures" {
1111 treat_missing_data = " notBreaching"
1212
1313 dimensions = {
14- TopicName = aws_sns_topic.sns_topic_event_bus .name
14+ TopicName = aws_sns_topic.main .name
1515 }
1616}
Original file line number Diff line number Diff line change 1- output "sns_topic_event_bus " {
1+ output "sns_topic " {
22 description = " SNS Topic ARN and Name"
33 value = {
4- arn = aws_sns_topic.sns_topic_event_bus.arn
5- name = aws_sns_topic.sns_topic_event_bus.name
6- }
7- }
8-
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
4+ arn = aws_sns_topic.main.arn
5+ name = aws_sns_topic.main.name
146 }
157}
168
Original file line number Diff line number Diff line change 1- resource "aws_sns_topic" "sns_topic_event_bus " {
2- name = " ${ local . csi } -event-bus-events "
1+ resource "aws_sns_topic" "main " {
2+ name = local. csi
33 kms_master_key_id = var. kms_key_arn
44
55 application_failure_feedback_role_arn = var. enable_sns_delivery_logging == true ? aws_iam_role. sns_delivery_logging_role [0 ]. arn : null
Original file line number Diff line number Diff line change 1- resource "aws_sns_topic_policy" "sns_topic_event_bus" {
2- arn = aws_sns_topic. sns_topic_event_bus . arn
3-
4- policy = data. aws_iam_policy_document . sns_topic_policy . json
5- }
6-
7- resource "aws_sns_topic_policy" "sns_topic_supplier" {
8- arn = aws_sns_topic. sns_topic_event_bus . arn
1+ resource "aws_sns_topic_policy" "main" {
2+ arn = aws_sns_topic. main . arn
93
104 policy = data. aws_iam_policy_document . sns_topic_policy . json
115}
@@ -35,7 +29,7 @@ data "aws_iam_policy_document" "sns_topic_policy" {
3529 ]
3630
3731 resources = [
38- aws_sns_topic . sns_topic_event_bus . arn ,
32+ aws_sns_topic . main . arn ,
3933 ]
4034
4135 condition {
@@ -63,7 +57,7 @@ data "aws_iam_policy_document" "sns_topic_policy" {
6357 }
6458
6559 resources = [
66- aws_sns_topic . sns_topic_event_bus . arn ,
60+ aws_sns_topic . main . arn ,
6761 ]
6862 }
6963}
Original file line number Diff line number Diff line change 1- resource "aws_sns_topic_subscription" "sns_topic_event_bus_firehose " {
1+ resource "aws_sns_topic_subscription" "firehose " {
22 count = var. enable_event_cache ? 1 : 0
33
4- topic_arn = aws_sns_topic. sns_topic_event_bus . arn
5- protocol = " firehose"
6- subscription_role_arn = aws_iam_role. sns_role . arn
7- endpoint = aws_kinesis_firehose_delivery_stream. main [0 ]. arn
8- raw_message_delivery = var. enable_firehose_raw_message_delivery
9- }
10-
11- resource "aws_sns_topic_subscription" "sns_topic_supplier_firehose" {
12- count = var. enable_event_cache ? 1 : 0
13-
14- topic_arn = aws_sns_topic. sns_topic_supplier . arn
4+ topic_arn = aws_sns_topic. main . arn
155 protocol = " firehose"
166 subscription_role_arn = aws_iam_role. sns_role . arn
177 endpoint = aws_kinesis_firehose_delivery_stream. main [0 ]. arn
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments