From 78e99d1c80587b8cfebedde5c5f2d615300d417d Mon Sep 17 00:00:00 2001 From: Colin Rymer Date: Fri, 16 Sep 2022 07:32:53 -0400 Subject: [PATCH] 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. --- modules/runners/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/runners/main.tf b/modules/runners/main.tf index 7fea4e8940..80eed67c21 100644 --- a/modules/runners/main.tf +++ b/modules/runners/main.tf @@ -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"] } }