-
Notifications
You must be signed in to change notification settings - Fork 0
/
nic.tf
35 lines (30 loc) · 1.06 KB
/
nic.tf
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
33
34
35
resource "azurerm_network_interface" "nic0" {
name = "${var.prefix}-nic0"
location = azurerm_resource_group.rg1.location
resource_group_name = azurerm_resource_group.rg1.name
ip_configuration {
name = "${var.prefix}-ipconfig-0"
private_ip_address_allocation = "Static"
private_ip_address_version = "IPv4"
private_ip_address = "10.40.0.4"
subnet_id = azurerm_subnet.subnet1.id
}
tags = {
deployment = "Terraform"
}
}
resource "azurerm_network_interface" "nic1" {
name = "${var.prefix}-nic1"
location = azurerm_resource_group.rg1.location
resource_group_name = azurerm_resource_group.rg1.name
ip_configuration {
name = "${var.prefix}-ipconfig-1"
private_ip_address_allocation = "Static"
private_ip_address_version = "IPv4"
private_ip_address = "10.40.1.4"
subnet_id = azurerm_subnet.subnet2.id
}
tags = {
deployment = "Terraform"
}
}