Post-Processors creating additions artifacts

83 views
Skip to first unread message

Scott Kellish

unread,
Sep 13, 2016, 11:27:05 AM9/13/16
to Packer
Hi,
New to packer and go for that matter. I created a post-processor to generate encrypted AMI's following creation of unencrypted AMI by the AWS builder. Its working and I assumed based on what I read that it made sense to do this as a post-processing function rather than modifying the existing 'ebs' builder but I see some limitations surrounding post-processing so wanted to ask here

1. When I have the AWS builder copy the AMI to other regions via ami_regions, post-processor gets called once with the list of AMI's created. Wouldnt it be more efficient for packer to call post-processor separately for the original and each copy so they can run in parallel?

2. At least for the aws artifact, theres no way to specify multiple AMI's per region so my post-processor can't return the id of the encrypted AMI it encrypted. Not being able to return the AMI basically breaks the post-processing pipeline (we keep both the unencrypted and encrypted) amis

Thanks,
I guess I'm not really asking a question here, but any input/comments would be appreciated.

Scott

Rickard von Essen

unread,
Sep 14, 2016, 3:18:34 AM9/14/16
to packe...@googlegroups.com
Why don't you use the amazon-ebs support for encrypted volumes? 

1) You can build in parallel via launching multiple go routines inside your post-processor.

2) You should have "keep_input_artifact": true and your post-processor should handle not removing the input artifact. See
 

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/5687a0b6-6c45-4fde-aab8-8b637ef768c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages