templates/packer: append distro and arch to the ami name
Because the rhel-8 images share the same name, and `force_deregister` is true, packer will always deregister one of them.
This commit is contained in:
parent
561bbbbdf3
commit
183e10e466
1 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ build {
|
|||
}
|
||||
|
||||
# Set a name for the resulting AMI.
|
||||
ami_name = "${var.image_name}"
|
||||
ami_name = "${var.image_name}-rhel-8-x86_64"
|
||||
|
||||
# Apply tags to the resulting AMI/EBS snapshot.
|
||||
tags = {
|
||||
|
|
@ -72,7 +72,7 @@ build {
|
|||
}
|
||||
|
||||
# Set a name for the resulting AMI.
|
||||
ami_name = "${var.image_name}"
|
||||
ami_name = "${var.image_name}-rhel-8-aarch64"
|
||||
|
||||
# Apply tags to the resulting AMI/EBS snapshot.
|
||||
tags = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue