Closed Nkmol closed 2 years ago
This is actually possible using the image_filter
property, once you make sure to add a snapshot_labels
as Snapshots do not have a "name" property.
Which is exactly what is described in the docs:
If you want to reference the image as a sample in your terraform configuration please use the image id or the
snapshot_labels
.
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
Allow the possibility to apply a snapshot name as the input of a snapshot build. Currently, we only allow for a "OS image" as the base.
Use Case(s)
This would allow for sequential snapshot build, for example with the following chain: ISO Image Ubuntu → Snapshot server → snapshot server-special
Using the Source Build block, I believe, we could even build this chain as
Packer build
builds in-order of definition.Potential configuration
There is no difference between 'input' and 'output' definitions, but maybe “base” (so “base_snapshot”) would be applicable both for images and snapshots.
Potential References