Skip to content

Commit

Permalink
fix(runners): Set the default Windows AMI to Server 2022 (#2325)
Browse files Browse the repository at this point in the history
AWS removed the Windows Server 20H2 AMIs on 2022-08-09, causing this
module to fail when trying to lookup AMIs with that name.
  • Loading branch information
colinrymer authored Sep 16, 2022
1 parent 18675d0 commit 78e99d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/runners/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ locals {
kms_key_arn = var.kms_key_arn != null ? var.kms_key_arn : ""

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

Expand Down

0 comments on commit 78e99d1

Please sign in to comment.