19 lines
779 B
Terraform
19 lines
779 B
Terraform
# vcNsxt -> modify (modifier: network) — только SNAT.
|
||
# ALB/VS/qos задаются на create Edge и НЕ дублируются тут:
|
||
# ядро (2.0.10+) досылает незаданные params их live-значением.
|
||
resource "nubes_vc_nsxt_network" "edge_net" {
|
||
vc_nsxt_id = nubes_vc_nsxt.edge.id
|
||
|
||
# JSON-строка с camelCase-ключами (как в API/HAR), НЕ snake_case как в edge.tf
|
||
routed_net_configuration = jsonencode({
|
||
ipAddrPool = var.nsxt_ip_addr_pool
|
||
mainDns = var.nsxt_main_dns
|
||
secondDns = var.nsxt_second_dns
|
||
})
|
||
|
||
# SNAT: внешний IP из организации; "no-needed" — выключить SNAT
|
||
ip_space_name = var.org_ip_space_name
|
||
|
||
depends_on = [nubes_vc_org_ip_space.org_ips]
|
||
}
|