Skip to content

Commit

Permalink
Giving ip to inbound endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrichlake committed Mar 7, 2024
1 parent ef8f820 commit f5a8998
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions operations/template/net.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ data "azurerm_virtual_network" "app" {
resource_group_name = data.azurerm_resource_group.group.name
}

#locals {
# subnets_cidrs = cidrsubnets(data.azurerm_virtual_network.app.)
#}

resource "azurerm_subnet" "app" {
name = "app"
resource_group_name = data.azurerm_resource_group.group.name
Expand Down
1 change: 1 addition & 0 deletions operations/template/vpn.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ resource "azurerm_private_dns_resolver_inbound_endpoint" "resolver_inbound_endpo
ip_configurations {
private_ip_allocation_method = "Static"
subnet_id = azurerm_subnet.resolver_inbound.id
private_ip_address = cidrhost(azurerm_subnet.resolver_inbound.address_prefixes[0], 1)
}
}

Expand Down

0 comments on commit f5a8998

Please sign in to comment.