Categorygithub.com/in4it/ecs-upgrade
repositorypackage
0.0.0-20241129202015-5313b50ccf37
Repository: https://github.com/in4it/ecs-upgrade.git
Documentation: pkg.go.dev

# README

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