Skip to content

Commit dc34d67

Browse files
authored
Merge pull request #823 from NHSDigital/bug/jale13-fix-dev-sandbox-infra
Dev sandbox bugfix
2 parents 1cbbf55 + b17b11d commit dc34d67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

terraform/infrastructure/locals.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ locals {
2929
public_domain = local.is_sandbox_env ? var.public_sandbox_domain : var.public_domain
3030

3131
# Logic / vars for reporting
32-
reporting_bucket_arn = local.is_dev_env ? data.aws_s3_bucket.source-data-bucket[0].arn : null
33-
reporting_kms_arn = local.is_dev_env ? data.aws_kms_key.glue[0].arn : null
34-
firehose_lambda_subscriptions = local.is_dev_env ? [
32+
reporting_bucket_arn = local.is_dev_env && !local.is_sandbox_env ? data.aws_s3_bucket.source-data-bucket[0].arn : null
33+
reporting_kms_arn = local.is_dev_env && !local.is_sandbox_env ? data.aws_kms_key.glue[0].arn : null
34+
firehose_lambda_subscriptions = local.is_dev_env && !local.is_sandbox_env ? [
3535
module.firehose__processor.firehose_subscription,
3636
module.firehose__processor.firehose_reporting_subscription
3737
] : [

0 commit comments

Comments
 (0)