Skip to content

Commit

Permalink
Merge pull request #532 from companieshouse/feature/go-live-updates
Browse files Browse the repository at this point in the history
go live configs and tf updates
  • Loading branch information
akachwala-ch authored Nov 11, 2024
2 parents 2837793 + 95ee6ea commit eb85372
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion terraform/groups/ecs-service/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions terraform/groups/ecs-service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ terraform {
}

module "secrets" {
source = "[email protected]:companieshouse/terraform-modules//aws/ecs/secrets?ref=1.0.285"
source = "[email protected]:companieshouse/terraform-modules//aws/ecs/secrets?ref=1.0.293"

name_prefix = "${local.service_name}-${var.environment}"
environment = var.environment
Expand All @@ -28,7 +28,7 @@ module "secrets" {
}

module "ecs-service" {
source = "[email protected]:companieshouse/terraform-modules//aws/ecs/ecs-service?ref=1.0.285"
source = "[email protected]:companieshouse/terraform-modules//aws/ecs/ecs-service?ref=1.0.293"

# Environmental configuration
environment = var.environment
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
environment = "live"
aws_profile = "live-eu-west-2"

log_level = "info"
desired_task_count = 2
min_task_count = 2

0 comments on commit eb85372

Please sign in to comment.