AMAZON EBS post provisioning AMI tags

12 views
Skip to first unread message

Guillermo A Menjivar

unread,
Dec 29, 2018, 1:06:08 AM12/29/18
to Packer
Hello All,
I have a quick question. I am using amazon-ebs to generate my AMIs. However, there are artifacts that are generated during my provisioning step; such as installing software `foo. I extract the version that was installed in my soon to be AMI. I would like to know if there is any way that I can use this data to add additional tags to my final AMI. Do I make sense ? I noticed that alot of the tags definitions are done statically ( from my currently limited understanding of tagging in packer) but would like to take output from some of my post-provisioners and use them as input to create more tags. 
Thanks !

Rickard von Essen

unread,
Dec 29, 2018, 10:19:55 AM12/29/18
to packe...@googlegroups.com
There is no direct support for this, but you can achieve this with writing the tags to a a file and then download it with the file provisioner. Then after the AMI have been created you can use the shell-local post-processor to add the tags to the AMI. 

--
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/29ed5dcb-2a0b-4731-9d66-1139b73c59c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Guillermo A Menjivar

unread,
Dec 29, 2018, 11:38:32 PM12/29/18
to packe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages