From efd337118a75910c488a4421115794b7be5de92c Mon Sep 17 00:00:00 2001 From: Matt Dean Date: Thu, 3 Jul 2025 15:45:54 +0100 Subject: [PATCH] [NRL-1511] Enable reporting in prod. Fix prod infra issues --- terraform/account-wide-infrastructure/prod/data.tf | 2 ++ terraform/account-wide-infrastructure/prod/ec2.tf | 2 +- terraform/account-wide-infrastructure/prod/vars.tf | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/terraform/account-wide-infrastructure/prod/data.tf b/terraform/account-wide-infrastructure/prod/data.tf index 7b3c623de..1d974a10e 100644 --- a/terraform/account-wide-infrastructure/prod/data.tf +++ b/terraform/account-wide-infrastructure/prod/data.tf @@ -1,3 +1,5 @@ +data "aws_region" "current" {} + data "aws_secretsmanager_secret_version" "identities_account_id" { secret_id = aws_secretsmanager_secret.identities_account_id.name } diff --git a/terraform/account-wide-infrastructure/prod/ec2.tf b/terraform/account-wide-infrastructure/prod/ec2.tf index 669b2d5be..310265b60 100644 --- a/terraform/account-wide-infrastructure/prod/ec2.tf +++ b/terraform/account-wide-infrastructure/prod/ec2.tf @@ -14,7 +14,7 @@ module "powerbi_gw_instance" { source = "../modules/powerbi-gw-ec2" use_custom_ami = false instance_type = var.powerbi_gw_instance_type - name_prefix = "nhsd-nrlf--test-powerbi-gw" + name_prefix = "nhsd-nrlf--prod-powerbi-gw" target_bucket_arn = module.prod-glue.target_bucket_arn glue_kms_key_arn = module.prod-glue.aws_kms_key_arn athena_kms_key_arn = module.prod-athena[0].kms_key_arn diff --git a/terraform/account-wide-infrastructure/prod/vars.tf b/terraform/account-wide-infrastructure/prod/vars.tf index 9f3acf808..0431523ff 100644 --- a/terraform/account-wide-infrastructure/prod/vars.tf +++ b/terraform/account-wide-infrastructure/prod/vars.tf @@ -24,7 +24,7 @@ variable "enable_dns_hostnames" { variable "enable_reporting" { type = bool description = "Enable account-wide reporting processes in the prod account" - default = false + default = true } variable "vpc_cidr_block" { @@ -66,5 +66,5 @@ variable "powerbi_gw_instance_type" { variable "use_powerbi_gw_custom_ami" { type = bool description = "Use custom image for PowerBI GW instance" - default = true + default = false }