Skip to content

Commit fa8e626

Browse files
committed
CCM-11352: remove hardcoded arn and use a topic for sbx
1 parent e7f9e70 commit fa8e626

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

infrastructure/terraform/components/sandbox/module_eventpub.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module "eventpub" {
1818
event_cache_buffer_interval = 0
1919
sns_success_logging_sample_percent = 0
2020

21-
data_plane_bus_arn = "arn:aws:events:eu-west-2:099709604300:event-bus/nhs-main-events-data-plane"
22-
control_plane_bus_arn = "arn:aws:events:eu-west-2:099709604300:event-bus/nhs-main-events-control-plane"
21+
# In the context of sbx these planes are not needed but the module require them
22+
data_plane_bus_arn = aws_sns_topic.events.arn
23+
control_plane_bus_arn = aws_sns_topic.events.arn
2324
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
# this is not sued for anything other than to keep the eventpub module happy
3+
resource "aws_sns_topic" "events" {
4+
name = "${local.csi}-events-sns"
5+
6+
kms_master_key_id = ata.aws_kms_key.sandbox.arn
7+
}

0 commit comments

Comments
 (0)