Skip to content

Commit

Permalink
add network_private_ip var to main
Browse files Browse the repository at this point in the history
  • Loading branch information
anniehedgpeth committed Sep 15, 2023
1 parent b3c1f7e commit 8df49f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ module "load_balancer" {
# Network
network_frontend_subnet_cidr = var.network_frontend_subnet_cidr
network_frontend_subnet_id = local.network.frontend_subnet.id
network_private_ip = var.network_private_ip

# Load balancer
load_balancer_type = var.load_balancer_type
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ variable "enable_ssh" {
description = "Enable SSH access on port 22 to the VM instance (standalone, load_balancer deployments only, not App GW). This is ***NOT RECOMMENDED*** for production deployments."
}

variable "network_private_ip" {
default = null
type = string
description = "(optional) Private IP address to use for LB/AG endpoint"
}

variable "network_private_subnet_id" {
default = null
type = string
Expand Down

0 comments on commit 8df49f8

Please sign in to comment.