Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29245

Force EC2 Instance Replacement When Updating UserData in CloudFormation

$
0
0

I'm using the UserData field in a CloudFormation template to install software on the instance. When I update the UserData I would like CloudFormation to replace the instance. However, UserData is not a replace field and as a result the instance is stopped but not replaced and the new UserData script is never run.

Is there a way I can update the UserData with CloudFormation?

I'm referring to this documentation.


Viewing all articles
Browse latest Browse all 29245

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>