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

Commit 2a824da

Browse files
authored
refactor: reduce verbosity when customizing some EBS settings for multi-runner (#3615)
Copied from here: https://github.com/philips-labs/terraform-aws-github-runner/blob/main/variables.tf#L267-L280 Should be backwards compatible as the defaults remain the same.
1 parent bb68562 commit 2a824da

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

Diff for: modules/multi-runner/variables.tf

+9-17
Original file line numberDiff line numberDiff line change
@@ -90,25 +90,17 @@ variable "multi_runner_config" {
9090
log_stream_name = string
9191
})), null)
9292
block_device_mappings = optional(list(object({
93-
delete_on_termination = bool
94-
device_name = string
95-
encrypted = bool
96-
iops = number
97-
kms_key_id = string
98-
snapshot_id = string
99-
throughput = number
93+
delete_on_termination = optional(bool, true)
94+
device_name = optional(string, "/dev/xvda")
95+
encrypted = optional(bool, true)
96+
iops = optional(number)
97+
kms_key_id = optional(string)
98+
snapshot_id = optional(string)
99+
throughput = optional(number)
100100
volume_size = number
101-
volume_type = string
101+
volume_type = optional(string, "gp3")
102102
})), [{
103-
delete_on_termination = true
104-
device_name = "/dev/xvda"
105-
encrypted = true
106-
iops = null
107-
kms_key_id = null
108-
snapshot_id = null
109-
throughput = null
110-
volume_size = 30
111-
volume_type = "gp3"
103+
volume_size = 30
112104
}])
113105
pool_config = optional(list(object({
114106
schedule_expression = string

0 commit comments

Comments
 (0)