I have been testing the new built in blue green functionality on ECS and it works really well. I would like the ability to use rolling or blue green at will, however I am experiencing an issue when I try to change the strategy to rolling after a successful blue green deploy. It keeps telling me a hook failed although the rolling config contains no lifecycle hooks - I even explicitly set it to an empty array. Is this even possible using the same service? I cannot find any documentation on this scenario and my suspicion is that the blue green feature was rolled out too early.
You’re hitting one of those “works in theory, breaks in practice” AWS edges. Once a service is tied to CodeDeploy blue/green, it bakes in the lifecycle hook expectations even if you switch the config. Empty array won’t matter because the deployment controller type is still blue/green under the hood.
If you want true rolling again, you basically have to:
Create a new service with deployment type ECS (not CodeDeploy)
Point it at the same task def and ALB rules
Cut traffic over and nuke the old one
AWS doesn’t make this clear, but there’s no clean toggle back—blue/green → rolling in place isn’t officially supported. You can only fake it by re-creating.