Hello

How are you creating these snapshots?

Maybe you can add an extra step and create an AMI with the snapshots, and
keep packer template more clean, and just use amazon-ebs


https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html#creating-launching-ami-from-snapshot

Alvaro

On Wed, Dec 5, 2018 at 8:17 PM <[email protected]> wrote:

> I have a source AMI and I want to bake a new AMI with some additional
> packages. I have a snapshot with scripts to install these packages. I was
> wondering what combination of builders/provisioners/etc I would use to
> create a volume from this snapshot and then install packages to a different
> volume (root volume). I would then need to unmount the additional volume
> created from the snapshot so it is not baked into the AMI as well.
>
> My guess was to use an ' amazon-ebsvolume ' builder to create a volume
> from the snapshot, then use ' amazon-ebs ' builder to actually create the
> AMI. I am slightly confused, however, on how I would order the events so
> the AMI created would only have the root volume baked in. I was looking at
> using ' launch_block_device_mappings '.
>
> Is this easily done in packer? In terraform, I can see how to create a
> volume from a snapshot easily and with packer I see how to create an AMI
> given a source AMI. Is there a way to do both cleanly in packer?
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/76673db5-2111-4159-b948-f78aa7d06bce%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/76673db5-2111-4159-b948-f78aa7d06bce%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Alvaro

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAHqq0exr1skdBTWU_PCs%2BSLPHhd4Sp6HqixD_Qb5Ki%3DqDQsvMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to