I'm not sure I understand what you want but an EBS backed AMI refers snapshot so those are created when the AMI is created. Also when you launch the instance use to create the new AMI you can override any volume with launch_block_device_mappings.
But if you don't want to do any provisioning you might be better off using the cli directly. On Fri, Feb 8, 2019, 23:41 <[email protected] wrote: > I am using packer to create a bunch of images. I want to be able to launch > an instance from an image and swap out its root volume to create another > image. So I was thinking about stopping the instance and "snapshotting" the > new root volume to create an image. I'd like to accomplish this using > packer. Is there a way to create snapshots using packer? Is there a > recommended approach to accomplishing this? Thanks! > > -- > 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/abdf5976-6bf5-44be-968d-d38a07abfe7e%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/abdf5976-6bf5-44be-968d-d38a07abfe7e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CALz9Rt_xDPbDtkMubwqfrnLZO_jEF70QnDjOu_Wra8iDj29PXA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
