File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,12 @@ variable "use_cloud_nat" {
68
68
default = false
69
69
}
70
70
71
+ variable "subnet_ip_cidr_range" {
72
+ type = string
73
+ description = " CIDR range to assign to subnet VM instances launch in."
74
+ default = " 10.0.1.0/24"
75
+ }
76
+
71
77
variable "enable_debug" {
72
78
type = bool
73
79
description = " Enable debug messages of github-runner-autoscaler Cloud Run (WARNING: secrets will be leaked in log files)."
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ resource "google_compute_network" "vpc_network" {
8
8
resource "google_compute_subnetwork" "subnetwork" {
9
9
name = " spot-runner-subnetwork"
10
10
description = " The subnetwork the ephemeral GitHub runner instances will join"
11
- ip_cidr_range = " 10.0.1.0/24 "
11
+ ip_cidr_range = var . subnet_ip_cidr_range
12
12
network = google_compute_network. vpc_network . name
13
13
private_ip_google_access = true
14
14
}
You can’t perform that action at this time.
0 commit comments