Cloudformation - What Does This Mean?

29 views
Skip to first unread message

Tennis Smith

unread,
Oct 14, 2014, 5:09:37 PM10/14/14
to ansible...@googlegroups.com

I'm using the cloudformation module to start a stack.  

Everything works.  But, I'd like to update the stack now that it is running. 

According to the documentation, the stack can be updated if the template changed (below)

Just touching the template file with new date values doesn't work.  What about the template has to change before the module will update a running stack?

-T

Ben Symonds

unread,
Oct 15, 2014, 5:00:37 AM10/15/14
to ansible...@googlegroups.com
I haven't actually checked the module code, but I think it _always_ makes the request to cfn, and relies on cfn to determine whether there are any changes or not. So it's up to cfn. Changing the timestamp of the template file has no effect - the template content is unchanged so there is nothing for cfn to do.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6feec89e-4b9e-4f7b-941f-7ac31347c059%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

James Martin

unread,
Oct 15, 2014, 11:57:46 AM10/15/14
to ansible...@googlegroups.com
Ben is correct.  The change is determined by AWS CloudFormation API endpoint, not by Ansible itself.  Changes to resources, parameters, outputs, etc would indicate a change according to the Cloudformation API, not to timestamp alone.
Reply all
Reply to author
Forward
0 new messages