ThoughtWorksStudios / eb_deployer

AWS Elastic Beanstalk blue-green deployment automation from ThoughtWorks Mingle Team
MIT License
400 stars 94 forks source link

Terminate Stack Retry Feature Request #62

Open bryantidd opened 9 years ago

bryantidd commented 9 years ago

Because of a known error in Elastic Beanstalk, blue/green terminate inactive can fail. The problem lies in a timing problem between ec2 resources and eb termination. Sometimes (often for those of use who do continuous deployment) the stack will fail to terminate because it thinks there is still a dependent resource on a security group. In all cases, I have found that requesting that the environment be terminated again after the error results in a successful termination. Since we use eb_deployer so heavily in our continuous delivery scheme, it would be of great value to have a retry termination feature available when the stack fails to terminate initially. It would be valuable to have a number of retry attempts.