From eca23bffe9a219d3dc66028149f5cb2d8c7eca35 Mon Sep 17 00:00:00 2001 From: Kenichi Maehashi <939877+kmaehashi@users.noreply.github.com> Date: Fri, 16 Sep 2022 17:01:46 +0900 Subject: [PATCH] feat(images): Allow passing instance type when building windows image (#2369) --- images/windows-core-2019/github_agent.windows.pkr.hcl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/images/windows-core-2019/github_agent.windows.pkr.hcl b/images/windows-core-2019/github_agent.windows.pkr.hcl index 4f8c792534..ea8dc20519 100644 --- a/images/windows-core-2019/github_agent.windows.pkr.hcl +++ b/images/windows-core-2019/github_agent.windows.pkr.hcl @@ -19,6 +19,12 @@ variable "region" { default = "eu-west-1" } +variable "instance_type" { + description = "The instance type Packer will use for the builder" + type = string + default = "t3a.medium" +} + variable "ebs_delete_on_termination" { description = "Indicates whether the EBS volume is deleted on instance termination." type = bool @@ -40,7 +46,7 @@ variable "custom_shell_commands" { source "amazon-ebs" "githubrunner" { ami_name = "github-runner-windows-core-2019-${formatdate("YYYYMMDDhhmm", timestamp())}" communicator = "winrm" - instance_type = "t3a.medium" + instance_type = var.instance_type region = var.region associate_public_ip_address = var.associate_public_ip_address