-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #805 from companieshouse/feature/DVOP-3122-confirm…
…ation-statment-web-ecs-terraform-update Feature/dvop 3122 confirmation statment web ecs terraform update
- Loading branch information
Showing
6 changed files
with
38 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,15 +12,15 @@ terraform { | |
} | ||
|
||
provider "aws" { | ||
region = var.aws_region | ||
region = var.aws_region | ||
} | ||
|
||
terraform { | ||
backend "s3" {} | ||
} | ||
|
||
module "secrets" { | ||
source = "[email protected]:companieshouse/terraform-modules//aws/ecs/secrets?ref=1.0.287" | ||
source = "[email protected]:companieshouse/terraform-modules//aws/ecs/secrets?ref=1.0.296" | ||
|
||
name_prefix = "${local.service_name}-${var.environment}" | ||
environment = var.environment | ||
|
@@ -29,7 +29,7 @@ module "secrets" { | |
} | ||
|
||
module "ecs-service" { | ||
source = "[email protected]:companieshouse/terraform-modules//aws/ecs/ecs-service?ref=1.0.287" | ||
source = "[email protected]:companieshouse/terraform-modules//aws/ecs/ecs-service?ref=1.0.296" | ||
|
||
# Environmental configuration | ||
environment = var.environment | ||
|
@@ -46,21 +46,23 @@ module "ecs-service" { | |
|
||
# ECS Task container health check | ||
use_task_container_healthcheck = true | ||
healthcheck_path = local.healthcheck_path | ||
healthcheck_matcher = local.healthcheck_matcher | ||
healthcheck_path = local.healthcheck_path | ||
healthcheck_matcher = local.healthcheck_matcher | ||
|
||
# Docker container details | ||
docker_registry = var.docker_registry | ||
docker_repo = local.docker_repo | ||
container_version = var.confirmation_statement_web_version | ||
container_port = local.container_port | ||
docker_registry = var.docker_registry | ||
docker_repo = local.docker_repo | ||
container_version = var.confirmation_statement_web_version | ||
container_port = local.container_port | ||
|
||
|
||
# Service configuration | ||
service_name = local.service_name | ||
name_prefix = local.name_prefix | ||
|
||
# Service performance and scaling configs | ||
desired_task_count = var.desired_task_count | ||
min_task_count = var.min_task_count | ||
max_task_count = var.max_task_count | ||
required_cpus = var.required_cpus | ||
required_memory = var.required_memory | ||
|
@@ -76,10 +78,10 @@ module "ecs-service" { | |
cloudwatch_alarms_enabled = var.cloudwatch_alarms_enabled | ||
|
||
# Service environment variable and secret configs | ||
task_environment = local.task_environment | ||
task_secrets = local.task_secrets | ||
app_environment_filename = local.app_environment_filename | ||
use_set_environment_files = local.use_set_environment_files | ||
task_environment = local.task_environment | ||
task_secrets = local.task_secrets | ||
app_environment_filename = local.app_environment_filename | ||
use_set_environment_files = local.use_set_environment_files | ||
|
||
depends_on = [module.secrets] | ||
} |
5 changes: 0 additions & 5 deletions
5
terraform/groups/ecs-service/profiles/development-eu-west-2/cidev/vars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
environment = "cidev" | ||
aws_profile = "development-eu-west-2" | ||
|
||
# service configs | ||
use_set_environment_files = true | ||
log_level = "debug" | ||
|
||
# Scheduled scaling of tasks | ||
service_autoscale_enabled = true | ||
service_scaledown_schedule = "55 19 * * ? *" | ||
service_scaleup_schedule = "5 6 * * ? *" |
5 changes: 0 additions & 5 deletions
5
terraform/groups/ecs-service/profiles/development-eu-west-2/phoenix1/vars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
environment = "phoenix1" | ||
aws_profile = "development-eu-west-2" | ||
|
||
# service configs | ||
use_set_environment_files = true | ||
log_level = "debug" | ||
|
||
# Scheduled scaling of tasks | ||
service_autoscale_enabled = true | ||
service_scaledown_schedule = "55 19 * * ? *" | ||
service_scaleup_schedule = "5 6 * * ? *" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
terraform/groups/ecs-service/profiles/staging-eu-west-2/staging/vars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
environment = "staging" | ||
aws_profile = "staging-eu-west-2" | ||
|
||
# service configs | ||
use_set_environment_files = true | ||
|
||
# scaling configs | ||
desired_task_count = 2 # use multi instance in staging | ||
|
||
# Scheduled scaling of tasks | ||
service_scaledown_schedule = "55 19 * * ? *" | ||
service_scaleup_schedule = "5 6 * * ? *" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters