Skip to content

Commit 8ea0586

Browse files
committed
Update subnet configurations in main.tf: rename existing subnets and add new subnets with specified address prefixes
1 parent 1843cc8 commit 8ea0586

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

main/main.tf

+26-2
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,40 @@ resource "azurerm_virtual_network" "example" {
2222
#dns_servers = ["10.0.0.4", "10.0.0.5"]
2323

2424
subnet {
25-
name = "subnet1"
25+
name = "fw-subnet"
2626
address_prefix = "10.0.1.0/24"
2727
}
2828

2929
subnet {
30-
name = "subnet2"
30+
name = "gw-subnet"
3131
address_prefix = "10.0.2.0/24"
3232
#security_group = azurerm_network_security_group.example.id
3333
}
3434

35+
subnet {
36+
name = "vm-subnet"
37+
address_prefix = "10.0.3.0/24"
38+
#security_group = azurerm_network_security_group.example.id
39+
}
40+
41+
subnet {
42+
name = "pe-subnet"
43+
address_prefix = "10.0.4.0/24"
44+
#security_group = azurerm_network_security_group.example.id
45+
}
46+
47+
subnet {
48+
name = "app-subnet"
49+
address_prefix = "10.0.5.0/24"
50+
#security_group = azurerm_network_security_group.example.id
51+
}
52+
53+
subnet {
54+
name = "db-subnet"
55+
address_prefix = "10.0.6.0/24"
56+
#security_group = azurerm_network_security_group.example.id
57+
}
58+
3559
tags = {
3660
environment = "Production"
3761
}

0 commit comments

Comments
 (0)