From 76be94beda6c13c75145c7c79dae888bdb647da3 Mon Sep 17 00:00:00 2001 From: Borys Levkovych <38095999+LevkovychBorya@users.noreply.github.com> Date: Wed, 6 Jul 2022 12:00:20 +0200 Subject: [PATCH] fix(images): avoid wrong AMI could be selected for ubuntu focal (#2214) * Changed the source_ami_filter for ubuntu focal With the previous filter you could also get following ami: - ubuntu-eks/k8s_1.18/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-* We are looking specifically for this type: - ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-* Which is unintended, as far as I understand. * another_commit * packer fmt --- images/ubuntu-focal/github_agent.ubuntu.pkr.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/ubuntu-focal/github_agent.ubuntu.pkr.hcl b/images/ubuntu-focal/github_agent.ubuntu.pkr.hcl index fccfeba2d7..753bc06d15 100644 --- a/images/ubuntu-focal/github_agent.ubuntu.pkr.hcl +++ b/images/ubuntu-focal/github_agent.ubuntu.pkr.hcl @@ -88,7 +88,7 @@ source "amazon-ebs" "githubrunner" { source_ami_filter { filters = { - name = "*/ubuntu-focal-20.04-amd64-server-*" + name = "*ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*" root-device-type = "ebs" virtualization-type = "hvm" }