Create a snapshot after executing a successful amazon-ebsvolume build

25 views
Skip to first unread message

lmay...@lm3corp.com

unread,
May 22, 2018, 10:30:58 AM5/22/18
to Packer
I couldn't find information on how to create a snapshot after a newly created ebs volume.

Rickard von Essen

unread,
May 22, 2018, 12:25:44 PM5/22/18
to packe...@googlegroups.com
You can't. But you can use the manifest post-processor, read it in a script that you run after packer and snapshot each ebs volume with the cli. 

On Tue, May 22, 2018, 16:30 <lmay...@lm3corp.com> wrote:
I couldn't find information on how to create a snapshot after a newly created ebs volume.

--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/00e78a83-08ad-448b-9a07-6d0a821055f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lmay...@lm3corp.com

unread,
May 22, 2018, 12:35:27 PM5/22/18
to Packer
Can you provide an example on how to accomplish this task? 

Rickard von Essen

unread,
May 22, 2018, 12:46:22 PM5/22/18
to packe...@googlegroups.com
No, sorry I don't have such code lying around. But it should be really easy to parse the manifest file with jq and loop over the volumes and create a snapshot with the cli.

Give it a try and post again if you need help and provide what you got so far. 

Some lonks:


Reply all
Reply to author
Forward
0 new messages