Skip to content

Commit

Permalink
fix: Upgrade Amazon base AMI to Amazon Linux 2 kernel 5x (philips-lab…
Browse files Browse the repository at this point in the history
  • Loading branch information
npalm authored Mar 9, 2022
1 parent 0b8e1fc commit 9aa5532
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion images/linux-amzn2/github_agent.linux.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ source "amazon-ebs" "githubrunner" {
associate_public_ip_address = var.associate_public_ip_address
source_ami_filter {
filters = {
name = "amzn2-ami-hvm-2.*-x86_64-ebs"
name = "amzn2-ami-kernel-5.*-hvm-*-x86_64-gp2"
root-device-type = "ebs"
virtualization-type = "hvm"
}
Expand Down
2 changes: 1 addition & 1 deletion modules/runners/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ locals {

default_ami = {
"windows" = { name = ["Windows_Server-20H2-English-Core-ContainersLatest-*"] }
"linux" = var.runner_architecture == "arm64" ? { name = ["amzn2-ami-hvm-2*-arm64-gp2"] } : { name = ["amzn2-ami-hvm-2.*-x86_64-ebs"] }
"linux" = var.runner_architecture == "arm64" ? { name = ["amzn2-ami-kernel-5.*-hvm-*-arm64-gp2"] } : { name = ["amzn2-ami-kernel-5.*-hvm-*-x86_64-gp2"] }
}

default_userdata_template = {
Expand Down

0 comments on commit 9aa5532

Please sign in to comment.