Skip to content

Commit

Permalink
Configure ECS instance draining
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Feb 22, 2024
1 parent 6a7b17a commit dd67173
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 84 deletions.
1 change: 1 addition & 0 deletions infrastructure/modules/somleng_switch/client_gateway.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ resource "aws_ecs_capacity_provider" "client_gateway" {
auto_scaling_group_provider {
auto_scaling_group_arn = module.client_gateway_container_instances.autoscaling_group.arn
managed_termination_protection = "ENABLED"
managed_draining = "ENABLED"

managed_scaling {
maximum_scaling_step_size = 1000
Expand Down
1 change: 1 addition & 0 deletions infrastructure/modules/somleng_switch/media_proxy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ resource "aws_ecs_capacity_provider" "media_proxy" {
auto_scaling_group_provider {
auto_scaling_group_arn = module.media_proxy_container_instances.autoscaling_group.arn
managed_termination_protection = "ENABLED"
managed_draining = "ENABLED"

managed_scaling {
maximum_scaling_step_size = 1000
Expand Down
1 change: 1 addition & 0 deletions infrastructure/modules/somleng_switch/public_gateway.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ resource "aws_ecs_capacity_provider" "public_gateway" {
auto_scaling_group_provider {
auto_scaling_group_arn = module.public_gateway_container_instances.autoscaling_group.arn
managed_termination_protection = "ENABLED"
managed_draining = "ENABLED"

managed_scaling {
maximum_scaling_step_size = 1000
Expand Down
1 change: 1 addition & 0 deletions infrastructure/modules/somleng_switch/switch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ resource "aws_ecs_capacity_provider" "switch" {
auto_scaling_group_provider {
auto_scaling_group_arn = module.switch_container_instances.autoscaling_group.arn
managed_termination_protection = "ENABLED"
managed_draining = "ENABLED"

managed_scaling {
maximum_scaling_step_size = 1000
Expand Down
84 changes: 42 additions & 42 deletions infrastructure/production/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 42 additions & 42 deletions infrastructure/staging/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dd67173

Please sign in to comment.