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

Commit 78e99d1

Browse files
authored
fix(runners): Set the default Windows AMI to Server 2022 (#2325)
AWS removed the Windows Server 20H2 AMIs on 2022-08-09, causing this module to fail when trying to lookup AMIs with that name.
1 parent 18675d0 commit 78e99d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: modules/runners/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ locals {
1515
kms_key_arn = var.kms_key_arn != null ? var.kms_key_arn : ""
1616

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

0 commit comments

Comments
 (0)