Skip to content

Commit f3510d1

Browse files
committed
[NRL-1511] Enable reporting for prod. Final release fixups
1 parent 60ae6c9 commit f3510d1

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

terraform/account-wide-infrastructure/dev/secrets.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ resource "aws_secretsmanager_secret" "devsandbox_environment_configuration" {
4343
}
4444

4545
resource "aws_secretsmanager_secret" "powerbi_gw_instance_admin_pwd" {
46-
count = var.enable_reporting && var.enable_powerbi_auto_push ? 1 : 0
4746
name = "${local.project}--dev-powerbi-gw-instance-admin-pwd"
4847
description = "Admin password for the PowerBI Gateway EC2 instance"
4948
}

terraform/account-wide-infrastructure/prod/ec2.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module "vpc" {
1212
module "powerbi_gw_instance" {
1313
count = var.enable_reporting && var.enable_powerbi_auto_push ? 1 : 0
1414
source = "../modules/powerbi-gw-ec2"
15-
use_custom_ami = false
15+
use_custom_ami = var.use_powerbi_gw_custom_ami
1616
instance_type = var.powerbi_gw_instance_type
1717
name_prefix = "nhsd-nrlf--prod-powerbi-gw"
1818
target_bucket_arn = module.prod-glue.target_bucket_arn

terraform/account-wide-infrastructure/prod/secrets.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ resource "aws_secretsmanager_secret" "prod_environment_configuration" {
2323
}
2424

2525
resource "aws_secretsmanager_secret" "powerbi_gw_instance_admin_pwd" {
26-
count = var.enable_reporting && var.enable_powerbi_auto_push ? 1 : 0
2726
name = "${local.project}--prod-powerbi-gw-instance-admin-pwd"
2827
description = "Admin password for the PowerBI Gateway EC2 instance"
2928
}

terraform/account-wide-infrastructure/prod/vars.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ variable "instance_type" {
5454
variable "enable_powerbi_auto_push" {
5555
type = bool
5656
description = "Enable automatic pushing of info into PowerBI"
57-
default = false
57+
default = true
5858
}
5959

6060
variable "powerbi_gw_instance_type" {
@@ -66,5 +66,5 @@ variable "powerbi_gw_instance_type" {
6666
variable "use_powerbi_gw_custom_ami" {
6767
type = bool
6868
description = "Use custom image for PowerBI GW instance"
69-
default = false
69+
default = true
7070
}

terraform/account-wide-infrastructure/test/secrets.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ resource "aws_secretsmanager_secret" "ref_environment_configuration" {
108108
# PowerBI secrets
109109
#
110110
resource "aws_secretsmanager_secret" "powerbi_gw_instance_admin_pwd" {
111-
count = var.enable_reporting && var.enable_powerbi_auto_push ? 1 : 0
112111
name = "${local.project}--test-powerbi-gw-instance-admin-pwd"
113112
description = "Admin password for the PowerBI Gateway EC2 instance"
114113
}

0 commit comments

Comments
 (0)