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.

On Sat, Dec 29, 2018 at 7:06 AM Guillermo A Menjivar <[email protected]>
wrote:

> 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 !
>
> --
> 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/29ed5dcb-2a0b-4731-9d66-1139b73c59c1%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/29ed5dcb-2a0b-4731-9d66-1139b73c59c1%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_F3CgU7%3Dq-4uDr0GE8BNYPRpCL%3DDMR66YatG61FdixGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to