tag AMIs and snapshots with additional metadata

This commit is contained in:
Jake Buchholz 2019-06-03 19:46:29 -07:00 committed by Mike Crute
parent b517dda7b8
commit dbae752178
1 changed files with 8 additions and 1 deletions

View File

@ -39,7 +39,14 @@ builders = [
ami_name = "{{user `ami_name`}}"
ami_description = "{{user `ami_desc`}}"
tags {
Name = "{{user `ami_name`}}"
Name = "{{user `ami_name`}}"
profile = "{{user `profile`}}"
profile_build = "{{user `profile_build`}}"
version = "{{user `version`}}"
release = "{{user `release`}}"
arch = "{{user `arch`}}"
revision = "{{user `revision`}}"
end_of_life = "{{user `end_of_life`}}"
}
ami_virtualization_type = "hvm"
ami_architecture = "{{user `build_arch`}}" # need packer 1.4.1