From 183e10e4669436d736465cafb5a072d5eea41f80 Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Thu, 15 Sep 2022 18:05:08 +0200 Subject: [PATCH] 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. --- templates/packer/worker.pkr.hcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/packer/worker.pkr.hcl b/templates/packer/worker.pkr.hcl index 9f19bc9e3..ebf03dc10 100644 --- a/templates/packer/worker.pkr.hcl +++ b/templates/packer/worker.pkr.hcl @@ -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 = {