Skip to content

Commit b8e900c

Browse files
committed
bucket names & dev id
1 parent de71001 commit b8e900c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

terraform/configs.tf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,22 @@ locals {
66

77
// MESH Mailbox IDs by environment
88
prod_mesh_mailbox_id = "X26HC138"
9+
prod_mesh_dlq_mailbox_id = null
910
int_mesh_mailbox_id = "X26OT303"
1011
int_mesh_dlq_mailbox_id = "X26OT304"
1112

1213
// Environment-specific MESH configuration
14+
// Note: Prod and int names are hardcoded, dev is variable
1315
mesh_mailbox_id = local.environment == "prod" ? local.prod_mesh_mailbox_id : (
1416
local.environment == "int" ? local.int_mesh_mailbox_id : var.dev_mesh_mailbox_id
1517
)
1618

1719
// DLQ Mailbox for int only - Not currently implemented TODO
18-
mesh_dlq_mailbox_id = local.environment == "int" ? local.int_mesh_dlq_mailbox_id : null
19-
20+
mesh_dlq_mailbox_id = local.environment == "prod" ? local.prod_mesh_dlq_mailbox_id : (
21+
local.environment == "int" ? local.int_mesh_dlq_mailbox_id :
22+
var.dev_mesh_dlq_mailbox_id
23+
)
24+
2025
// MESH enabled if mailbox ID not null
2126
is_mesh_enabled = local.mesh_mailbox_id != null
2227
}

terraform/mesh.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module "mesh" {
1313
handshake_schedule = "rate(24 hours)"
1414

1515
account_id = local.immunisation_account_id
16-
# TODO these need enviroment specific names to avoid conflicts
16+
# TODO these bucket names need attention - enviroment specific names to avoid conflicts
1717
mesh_bucket_name = "local-immunisation-mesh"
1818
mesh_logs_bucket_name = "local-immunisation-mesh-s3logs"
1919
}

0 commit comments

Comments
 (0)