-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnics.tf
More file actions
32 lines (30 loc) · 1.21 KB
/
Copy pathnics.tf
File metadata and controls
32 lines (30 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
resource "azurerm_network_interface" "mgmtexternal" {
name = "mgmtexternal"
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
enable_ip_forwarding = "true"
ip_configuration {
name = "mgmtexternalConfiguration"
subnet_id = azurerm_subnet.External_subnet.id
private_ip_address_allocation = "Static"
private_ip_address = "10.95.0.10"
primary = true
public_ip_address_id = azurerm_public_ip.mgmtpublicip.id
}
}
resource "azurerm_network_interface" "mgmtinternal" {
name = "mgmtinternal"
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
enable_ip_forwarding = "true"
ip_configuration {
name = "mgmtinternalConfiguration"
subnet_id = azurerm_subnet.Internal_subnet.id
private_ip_address_allocation = "Static"
private_ip_address = "10.95.1.10"
}
}
# Output the public ip of the gateway
output "Public_ip" {
value = azurerm_public_ip.mgmtpublicip.ip_address
}