mu
mu copied to clipboard
Blue/Green deployments to ECS
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)
AWS just launched blue green deployinment from code deploy.
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.