Open mmdonaldson opened 6 years ago
Been wrestling with this same issue and haven't found any guidance after quite a bit of research. My impression is that the ASG and deployment group need to be created outside of CloudFormation unless you take the approach of manually specifying the targets for each deployment.
Yes ended up getting advice from AWS Solution Architect and he suggested your solution. Just a pain because any update to the ASG means manual updates so you have to throw Infrastructure as code out the window @clintoncampbell
Hi, I was trying to solve the same problem and have some thoughts. Also, if you were able to find a solution, please let us know. (Although it might just be better to wait for Cloudformation to support blue/green with codedeploy).
According to https://aws.amazon.com/blogs/devops/performing-bluegreen-deployments-with-aws-codedeploy-and-auto-scaling-groups/ there are 2 ways of doing blue green deployments. Following the second way mentioned there, I was thinking of doing the following in cloudformation: (not sure if this is feasible, any thoughts would be helpful)
in
cleanup.sh
you remove the old auto scaling group.If in future you try to update this stack in cloudformation, won't it fail because the initial auto scaling group no longer exists?