Skip to content

Commit

Permalink
fix(infra): add ecs managed tag to asg and turn on protect from scale…
Browse files Browse the repository at this point in the history
… in (#1956)

* feat(infra): add managed scaling option to ecs capacity provider

* feat(infra): modify api service desired count to zero to apply ecs cluster auto scaling

* feat(infra): restore ecs api soft limit

* feat(infra): modify ecs auto scaling target capacity to 100

* fix(infra): modify desired capacity to zero, not service desired count

* fix(infra): modify asg min size to zero to allow desired size

* fix(infra): restore asg min and desired size

* fix(infra): add ecs managed tag to asg and turn on protect from scale in
  • Loading branch information
ssupecial authored Aug 14, 2024
1 parent d0aa829 commit 1b79611
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ resource "aws_autoscaling_group" "this" {
lifecycle {
create_before_destroy = true
}

tag {
key = "AmazonECSManaged"
value = ""
propagate_at_launch = true
}

protect_from_scale_in = true

}

resource "aws_autoscaling_policy" "this" {
Expand Down

0 comments on commit 1b79611

Please sign in to comment.