Skip to content

Commit ad07a50

Browse files
authored
Merge pull request #483 from alphagov/auth-1316-ecs-sizing
AUTH-1316: Bring ECS sizing in line with PaaS deployment
2 parents 97335a5 + 25d14df commit ad07a50

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

ci/terraform/ecs.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ resource "aws_ecs_service" "frontend_ecs_service" {
1010
desired_count = var.ecs_desired_count
1111
launch_type = "FARGATE"
1212

13+
deployment_minimum_healthy_percent = var.deployment_min_healthy_percent
14+
deployment_maximum_percent = var.deployment_max_percent
15+
1316
network_configuration {
1417
security_groups = [
1518
local.allow_egress_security_group_id,

ci/terraform/production.tfvars

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
redis_service_plan = "large-ha-5_x"
22
environment = "production"
33
common_state_bucket = "digital-identity-prod-tfstate"
4-
public_access = false
4+
public_access = false
5+
ecs_desired_count = 4

ci/terraform/variables.tf

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ variable "image_digest" {
8282

8383
variable "ecs_desired_count" {
8484
type = number
85-
default = 3
85+
default = 2
8686
}
8787

8888
variable "app_port" {
@@ -135,4 +135,12 @@ variable "zendesk_api_token" {
135135

136136
variable "frontend_api_fqdn" {
137137
default = null
138+
}
139+
140+
variable "deployment_min_healthy_percent" {
141+
default = 50
142+
}
143+
144+
variable "deployment_max_percent" {
145+
default = 100
138146
}

0 commit comments

Comments
 (0)