Skip to content

Commit

Permalink
fix(images): avoid wrong AMI could be selected for ubuntu focal (#2214)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
blevkovych authored Jul 6, 2022
1 parent 52f01b6 commit 76be94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/ubuntu-focal/github_agent.ubuntu.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 76be94b

Please sign in to comment.