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

Commit eca23bf

Browse files
authored
feat(images): Allow passing instance type when building windows image (#2369)
1 parent fcd9fba commit eca23bf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: images/windows-core-2019/github_agent.windows.pkr.hcl

+7-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ variable "region" {
1919
default = "eu-west-1"
2020
}
2121

22+
variable "instance_type" {
23+
description = "The instance type Packer will use for the builder"
24+
type = string
25+
default = "t3a.medium"
26+
}
27+
2228
variable "ebs_delete_on_termination" {
2329
description = "Indicates whether the EBS volume is deleted on instance termination."
2430
type = bool
@@ -40,7 +46,7 @@ variable "custom_shell_commands" {
4046
source "amazon-ebs" "githubrunner" {
4147
ami_name = "github-runner-windows-core-2019-${formatdate("YYYYMMDDhhmm", timestamp())}"
4248
communicator = "winrm"
43-
instance_type = "t3a.medium"
49+
instance_type = var.instance_type
4450
region = var.region
4551
associate_public_ip_address = var.associate_public_ip_address
4652

0 commit comments

Comments
 (0)