Reputation: 501
In my CloudFormation stack I have AWS::AutoScaling::LaunchConfiguration, and within that I have AWS::CloudFormation::Init with various packages, files, etc.
One of my files in Init is a .jar that I upload to S3, which the stack grabs. I'd like to make changes to and reupload the .jar, and have the stack update with this new .jar without having to delete and recreate the stack. Can this be done?
I've come across documentation on cfn-hup, but I'm not sure how to specify that the stack update with changes to the files within Init - maybe in the path for the hooks configuration?
Thanks.
Upvotes: 1
Views: 439
Reputation: 13648
Just update the stack with the new file reference to the S3 jar file. No need to delete the stack. An update will create a new launch configuration with the new file reference.
Then re-launch your instances as needed. Then each instance will have the new jar file.
Upvotes: 1