[stage-1] add networks to infra

update readme
This commit is contained in:
2023-03-15 10:24:17 +07:00
parent d92c0da0e3
commit 787b053118
2 changed files with 27 additions and 0 deletions

17
terraform/networks.tf Normal file
View File

@@ -0,0 +1,17 @@
resource "yandex_vpc_network" "netology-gw-network" {
name = "netology-gw-network"
}
resource "yandex_vpc_subnet" "netology-gw-subnet-a" {
name = "netology-gw-subnet-a"
zone = "ru-central1-a"
network_id = yandex_vpc_network.netology-gw-network.id
v4_cidr_blocks = ["192.168.10.0/24"]
}
resource "yandex_vpc_subnet" "netology-gw-subnet-b" {
name = "netology-gw-subnet-b"
zone = "ru-central1-b"
network_id = yandex_vpc_network.netology-gw-network.id
v4_cidr_blocks = ["192.168.15.0/24"]
}