Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 9aa5532

Browse files
authored
fix: Upgrade Amazon base AMI to Amazon Linux 2 kernel 5x (#1812)
1 parent 0b8e1fc commit 9aa5532

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

images/linux-amzn2/github_agent.linux.pkr.hcl

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ source "amazon-ebs" "githubrunner" {
8181
associate_public_ip_address = var.associate_public_ip_address
8282
source_ami_filter {
8383
filters = {
84-
name = "amzn2-ami-hvm-2.*-x86_64-ebs"
84+
name = "amzn2-ami-kernel-5.*-hvm-*-x86_64-gp2"
8585
root-device-type = "ebs"
8686
virtualization-type = "hvm"
8787
}

modules/runners/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ locals {
1616

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

2222
default_userdata_template = {

0 commit comments

Comments
 (0)