@@ -12,7 +12,7 @@ module "terraservice" {
1212
1313 service = local. service
1414 relative_module_root = " ops/services/02-bene-prefs"
15- ssm_hierarchy_roots = concat ([" bfd" ], tolist (local. partners ))
15+ ssm_hierarchy_roots = concat ([" bfd" ], tolist (local. partners ))
1616}
1717
1818locals {
@@ -23,13 +23,13 @@ locals {
2323 env = module. terraservice . env
2424 env_key_arn = module. terraservice . env_key_arn
2525 name_prefix = " bfd-${ local . env } -${ local . service } "
26- partners = toset ([" bcda" , " ab2d" , " dpc" ])
26+ partners = contains ([ " test " , " prod " ], local . env ) ? toset ([" bcda" , " ab2d" , " dpc" ]) : toset ([ ])
2727 iam_path = module. terraservice . default_iam_path
2828 permissions_boundary_arn = module. terraservice . default_permissions_boundary_arn
2929
3030 root_dir = " bfdeft01"
3131
32- # Build up the partners config for the bucket assumer arns and S3 notification received file targets:
32+ # Build up the partners config for the bucket assumer arns and S3 notification received file targets:
3333 partners_config = {
3434 for partner in local . partners :
3535 partner = > {
@@ -151,9 +151,11 @@ module "topics" {
151151}
152152
153153resource "aws_dynamodb_table" "bene_preferences_tracker" {
154- name = " bfd-${ local . env } -bene-preferences"
155- billing_mode = " PAY_PER_REQUEST"
156- hash_key = " partner"
154+ count = contains ([" test" , " prod" ], local. env ) ? 1 : 0
155+
156+ name = " bfd-${ local . env } -bene-preferences"
157+ billing_mode = " PAY_PER_REQUEST"
158+ hash_key = " partner"
157159 attribute {
158160 name = " partner"
159161 type = " S"
0 commit comments