Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ resource "google_compute_instance" "pgbouncer" {
network_interface {
subnetwork = var.subnetwork
subnetwork_project = var.project
network_ip = var.network_ip

dynamic "access_config" {
for_each = var.disable_public_ip ? [] : [1]
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,9 @@ variable "module_depends_on" {
type = list
default = []
}

variable "network_ip" {
description = "Private IP Address of the VM"
type = string
default = null
}