CloudFormation wait condition in a update stack
amazon-web-services, aws-cloudformation
Solution
Great question. I have been searching for a solution myself, however it does appear that this is not possible. From a 2013 re:Invent session:
- cfn-hup cannot interact with CloudFormation workflow
- Workflow will not wait for cfn-hup
- cfn-hup cannot fail workflow
- cfn-hup cannot inject data into stack
Source: http://www.slideshare.net/AmazonWebServices/aws-cloudformation-under-the-hood-dmg303-aws-reinvent-2013-28437139/72
"If cfn-hup crashes and burns, and fails miserably, the CloudFormation workflow will say update complete."
Source: https://www.youtube.com/watch?v=ZhGMaw67Yu0&t=36m39s
Problem
I have a cloud formation template that I set up a wait condition to recieve a signal when the user data script finish to execute. This works perfect! Now I'm using cfn-hup to update my application with a new version. I update the stack with a new parameter and a script download the new version and install it on the server. But as I don't update the wait condition resource, it is not recreated and it do not wait until the signal. Is there anyway to force the wait condition resource recreation?