Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoReboot option in amazon-ebs builder #400

Open
piotr1212 opened this issue Jun 22, 2023 · 0 comments
Open

NoReboot option in amazon-ebs builder #400

piotr1212 opened this issue Jun 22, 2023 · 0 comments

Comments

@piotr1212
Copy link

Description

Please add the option to set NoReboot on the CreateImage in the amazon-ebs builder.

Use Case(s)

AWS reboots the instance before creating the image to ensure data integrity. We use packer to build golden images which are fully preconfigured/preinstalled. In the build we only enable services but don't start them. The reboot during the AWS image build does trigger the starting of those services which then try to connect to cluster and start sending metrics/logs to our observability. We would like to use the NoReboot option from the API to prevent this but I don't see how I can do this from packer. We realise the risks of NoReboot but think we can mitigate them by forcing fs synchronisation in a provisioner script. (ps we are migrating from Openstack which does not have this behaviour)

Potential References

NoReboot: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant