Sign inSign up

in4it/ecs-upgrade

By in4it

•Updated about 1 year ago

Automatically upgrade the AMIs of ECS Clusters

Image
0

1.1K

in4it/ecs-upgrade repository overview

⁠ECS Upgrade

  • Create new Launch Configuration based on existing launch config with latest ECS optimized AMI
  • Autoscale to double the instances
  • Wait until new instances are healthy and active in ECS
  • Drain old ECS instances
  • Check target group health
  • Autoscale back to instance count before scaling event
  • Cleanup

⁠AWS Configuration

  • Autoscaling group with termination policies: OldestLaunchConfiguration, OldestInstance

⁠Run

Manual docker command:

docker run -it -e AWS_ACCESS_KEY_ID=... -e AWS_SECRET_ACCESS_KEY=... -e AWS_REGION=... -e ECS_ASG=your-asg -e ECS_CLUSTER=yourcluster in4it/ecs-upgrade

⁠Not implemented

  • Rollbacks if something goes wrong

Tag summary

Content type

Image

Digest

sha256:98d883c87…

Size

22.4 MB

Last updated

about 1 year ago

docker pull in4it/ecs-upgrade