mu icon indicating copy to clipboard operation
mu copied to clipboard

Blue/Green deployments to ECS

Open cplee opened this issue 8 years ago • 2 comments
trafficstars

Currently, the mu svc deploy updates the task definition for a service which causes a rolling update. Would prefer to add support a blue/green deployment where a new service is created with new task definition. A new ALB target group is then created for the new service. The switch occurs by changing the ALB to use the new target group. Cleanup would then be to teardown the old ALB/service/tasks

  • cleanup "green" stack
  • choose name for new stack (force unique if doing b/g deploy)
  • upsert CFN stack for service
  • code deploy (if provider is ec2)
  • switch (if is b/g deploy)

cplee avatar Feb 02 '17 19:02 cplee

AWS just launched blue green deployinment from code deploy.

deleugpn avatar Dec 26 '18 01:12 deleugpn

The current deploymentStrategy: blue_green for a service is deceptive as it is not really bluegreen but a min 100% max 200% rolling. It is now possible to do a proper bluegreen as https://aws.amazon.com/blogs/devops/use-aws-codedeploy-to-implement-blue-green-deployments-for-aws-fargate-and-amazon-ecs/ and it'd be great to see that here.

jasonumiker avatar Apr 08 '19 11:04 jasonumiker