Skip to content

Commit 01d336a

Browse files
[PRMP-579] enable secondary bucket orgin for distribtuion on lower envs only
1 parent 1db706f commit 01d336a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrastructure/cloudfront.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module "cloudfront-distribution-lg" {
1515
qualifed_arn = module.edge-presign-lambda.qualified_arn
1616
depends_on = [module.edge-presign-lambda.qualified_arn, module.ndr-lloyd-george-store.bucket_id, module.ndr-lloyd-george-store.bucket_domain_name, module.ndr-document-pending-review-store.bucket_id, module.ndr-document-pending-review-store.bucket_domain_name]
1717
web_acl_id = try(module.cloudfront_firewall_waf_v2[0].arn, "")
18-
has_secondary_bucket = local.is_sandbox ? true : false
18+
has_secondary_bucket = local.is_production ? false : true
1919
secondary_bucket_domain_name = module.ndr-document-pending-review-store.bucket_regional_domain_name
2020
secondary_bucket_id = module.ndr-document-pending-review-store.bucket_id
2121
secondary_bucket_path_pattern = "/review/*"

0 commit comments

Comments
 (0)