From 81a20a9ee3c96d1d240874d968f2ff0f3ba46f96 Mon Sep 17 00:00:00 2001 From: akachwala-ch Date: Mon, 11 Nov 2024 11:28:11 +0000 Subject: [PATCH 1/2] go live configs and tf updates --- terraform/groups/ecs-service/main.tf | 4 ++-- .../groups/ecs-service/profiles/live-eu-west-2/live/vars | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 terraform/groups/ecs-service/profiles/live-eu-west-2/live/vars diff --git a/terraform/groups/ecs-service/main.tf b/terraform/groups/ecs-service/main.tf index 16a03654..a727d362 100644 --- a/terraform/groups/ecs-service/main.tf +++ b/terraform/groups/ecs-service/main.tf @@ -19,7 +19,7 @@ terraform { } module "secrets" { - source = "git@github.com:companieshouse/terraform-modules//aws/ecs/secrets?ref=1.0.285" + source = "git@github.com:companieshouse/terraform-modules//aws/ecs/secrets?ref=1.0.293" name_prefix = "${local.service_name}-${var.environment}" environment = var.environment @@ -28,7 +28,7 @@ module "secrets" { } module "ecs-service" { - source = "git@github.com:companieshouse/terraform-modules//aws/ecs/ecs-service?ref=1.0.285" + source = "git@github.com:companieshouse/terraform-modules//aws/ecs/ecs-service?ref=1.0.293" # Environmental configuration environment = var.environment diff --git a/terraform/groups/ecs-service/profiles/live-eu-west-2/live/vars b/terraform/groups/ecs-service/profiles/live-eu-west-2/live/vars new file mode 100644 index 00000000..31da4609 --- /dev/null +++ b/terraform/groups/ecs-service/profiles/live-eu-west-2/live/vars @@ -0,0 +1,6 @@ +environment = "live" +aws_profile = "live-eu-west-2" + +log_level = "info" +desired_task_count = 2 +min_task_count = 2 \ No newline at end of file From 95ee6ea60dab70af339c971bbcec0ff46f642b31 Mon Sep 17 00:00:00 2001 From: akachwala-ch Date: Mon, 11 Nov 2024 11:53:10 +0000 Subject: [PATCH 2/2] go live configs and tf updates --- terraform/groups/ecs-service/locals.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/groups/ecs-service/locals.tf b/terraform/groups/ecs-service/locals.tf index ce07bc95..1ded1f99 100644 --- a/terraform/groups/ecs-service/locals.tf +++ b/terraform/groups/ecs-service/locals.tf @@ -18,7 +18,7 @@ locals { use_set_environment_files = var.use_set_environment_files s3_config_bucket = data.vault_generic_secret.shared_s3.data["config_bucket_name"] app_environment_filename = "acsp-web.env" - vpc_name = data.aws_ssm_parameter.secret[format("/%s/%s", local.name_prefix, "vpc-name")].value + vpc_name = local.stack_secrets["vpc_name"] chs_api_key = local.service_secrets["chs_api_key"] # create a map of secret name => secret arn to pass into ecs service module