Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions modules/job-exec/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,18 @@ resource "google_cloud_run_v2_job" "job" {
content {
connector = vpc_access.value["connector"]
egress = vpc_access.value["egress"]
dynamic "network_interfaces" {
for_each = vpc_access.value["network_interfaces"]
content {
network = network_interfaces.value["network"]
subnetwork = network_interfaces.value["subnetwork"]
tags = network_interfaces.value["tags"]
}
}
}
}
}
}
}
}

Expand Down
5 changes: 5 additions & 0 deletions modules/job-exec/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ variable "vpc_access" {
type = list(object({
connector = string
egress = string
network_interfaces = optional(object({
network = optional(string)
subnetwork = optional(string)
tags = optional(list(string))
}))
}))
description = "VPC Access configuration to use for this Task."
default = []
Expand Down
Loading