We are using the Elastic CI Stack with a bootstrap file stored in S3. We had an issue recently where a bad file was pushed to S3, which then caused any instance that happened to reboot after it to use the bad bootstrap.
To avoid this in the future, we would like to tie changes to the bootstrap file as part of the cloudformation, so that changes to the bootstrap file would only be rolled out if/when the cloudformation template was deployed.
I believe the easiest way to achieve that would be to enable S3 bucket versioning on the bucket used to store the bootstrap file, and then have the specific bootstrap file version id passed in as a cloudformation parameter. Is that possible? Alternatively, do you have other recommendations on how to more safely rollout changes to the bootstrap script?