From 8ecd8b03de25e19197ea24ea7da812620d1b3629 Mon Sep 17 00:00:00 2001 From: robertsweetman Date: Tue, 21 Nov 2023 12:42:52 +0000 Subject: [PATCH 1/3] add log bucket --- .../corporate-staff-rostering/locals_preproduction.tf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/terraform/environments/corporate-staff-rostering/locals_preproduction.tf b/terraform/environments/corporate-staff-rostering/locals_preproduction.tf index 3f41dc1e798..61c6aae79e1 100644 --- a/terraform/environments/corporate-staff-rostering/locals_preproduction.tf +++ b/terraform/environments/corporate-staff-rostering/locals_preproduction.tf @@ -9,6 +9,10 @@ locals { custom_kms_key = module.environment.kms_keys["general"].arn iam_policies = module.baseline_presets.s3_iam_policies } + csr-nlb-log-bucket = { + custom_kms_key = module.environment.kms_keys["general"].arn + iam_policies = module.baseline_presets.s3_iam_policies + } } baseline_ssm_parameters = { @@ -591,7 +595,7 @@ locals { module.environment.subnet["private"]["eu-west-2b"].id, ] security_groups = ["load-balancer"] - access_logs = false + existing_bucket_name = "csr-nlb-log-bucket" instance_target_groups = { pp-csr-w-56-80 = { From aa252f18142d93400fbee0e159a30582bc241fee Mon Sep 17 00:00:00 2001 From: robertsweetman Date: Tue, 21 Nov 2023 12:52:06 +0000 Subject: [PATCH 2/3] re-apply missing values --- .../corporate-staff-rostering/locals_preproduction.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/environments/corporate-staff-rostering/locals_preproduction.tf b/terraform/environments/corporate-staff-rostering/locals_preproduction.tf index 61c6aae79e1..50edb2101e3 100644 --- a/terraform/environments/corporate-staff-rostering/locals_preproduction.tf +++ b/terraform/environments/corporate-staff-rostering/locals_preproduction.tf @@ -595,7 +595,7 @@ locals { module.environment.subnet["private"]["eu-west-2b"].id, ] security_groups = ["load-balancer"] - existing_bucket_name = "csr-nlb-log-bucket" + access_logs = false instance_target_groups = { pp-csr-w-56-80 = { From b71376223fd6540ff13ba4e0ebe331f17c234fa7 Mon Sep 17 00:00:00 2001 From: robertsweetman Date: Tue, 21 Nov 2023 12:54:12 +0000 Subject: [PATCH 3/3] formatting --- .../corporate-staff-rostering/locals_preproduction.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/environments/corporate-staff-rostering/locals_preproduction.tf b/terraform/environments/corporate-staff-rostering/locals_preproduction.tf index 50edb2101e3..f0c10739c1e 100644 --- a/terraform/environments/corporate-staff-rostering/locals_preproduction.tf +++ b/terraform/environments/corporate-staff-rostering/locals_preproduction.tf @@ -595,7 +595,7 @@ locals { module.environment.subnet["private"]["eu-west-2b"].id, ] security_groups = ["load-balancer"] - access_logs = false + access_logs = false instance_target_groups = { pp-csr-w-56-80 = {