tags(object of key/value strings) - Tags applied to the AMI and relevant snapshots. This is a template engine where theSourceAMIvariable is replaced with the source AMI ID andBuildRegionvariable is replaced with the value ofregion.
{ "variables": { "SourceAMI": "" }, "builders": [ { "type": "amazon-ebs", "region": "eu-west-2", "instance_type": "t2.small", "ssh_username": "ec2-user", "ami_name": "root-{{timestamp}}", "source_ami": "ami-11130775", "tags": { "based_on_ami": "{{user `SourceAMI`}}" } } ]}{ "builders": [ { "type": "amazon-ebs", "region": "eu-west-2", "instance_type": "t2.small", "ssh_username": "ec2-user", "ami_name": "root-{{timestamp}}", "source_ami": "ami-11130775", "tags": { "based_on_ami": "{{user `SourceAMI`}}" } } ]}{ "builders": [ { "type": "amazon-ebs", "region": "eu-west-2", "instance_type": "t2.small", "ssh_username": "ec2-user", "ami_name": "root-{{timestamp}}", "source_ami": "ami-11130775", "tags": { "based_on_ami": "{{`SourceAMI`}}" } } ]}{ "builders": [ { "type": "amazon-ebs", "region": "eu-west-2", "instance_type": "t2.small", "ssh_username": "ec2-user", "ami_name": "root-{{timestamp}}", "source_ami": "ami-11130775", "tags": { "based_on_ami": "{{`.SourceAMI`}}" } } ]}--
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/3b7d907b-2fc2-40f6-9e73-2ed00b501c6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
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/07a2373f-3a0a-47da-8a9b-6c046c49ac1a%40googlegroups.com.
Which version of Packer?