Skip to content

Commit

Permalink
feat(images): Allow passing instance type when building windows image (
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi authored Sep 16, 2022
1 parent fcd9fba commit eca23bf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion images/windows-core-2019/github_agent.windows.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit eca23bf

Please sign in to comment.