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

Support creating an AMI via a snapshot of the root volume #520

Open
weaversam8 opened this issue Dec 12, 2024 · 0 comments
Open

Support creating an AMI via a snapshot of the root volume #520

weaversam8 opened this issue Dec 12, 2024 · 0 comments

Comments

@weaversam8
Copy link

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Description

AWS recommends creating AMIs via a snapshot of a root EBS volume as a faster way of creating images. (This would be using the RegisterImage API rather than the CreateImage API.) Despite this potentially offering large speed improvements, this feature seems to be missing from the Amazon Packer plugin.

The amazon-ebssurrogate builder exists, but as far as I can tell, that's designed to create an AMI based on a snapshot of a volume that is not the root volume of the Packer builder instance.

Use Case(s)

  • Creating AMIs more quickly

Potential configuration

This could be implemented using a use_create_image option on the amazon-ebs builder, similar to the option that already exists on the amazon-ebssurrogate builder. The main difference is that use_create_image would need to default to true on the amazon-ebs builder to preserve existing behavior.

source "amazon-ebs" "ebs-source-abc" {
  // ...
  use_create_image = false
  // ...
}
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