feat: пример fullpipe_chain (vDC → Edge → внешние IP → SNAT) + README с шагами

This commit is contained in:
Repinoid
2026-09-24 15:21:41 +03:00
parent 2c7c5378a2
commit 6b058051bd
6 changed files with 182 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
# Внешние IP на организации (создаётся после Edge)
resource "nubes_vc_org_ip_allocation" "org_ip" {
org_uid = var.org_uid
vip_configure = jsonencode([
{
name = var.ip_space_name
count = var.ip_count
}
])
depends_on = [nubes_vc_nsxt.edge]
}
# SNAT на шлюзе этим ipSpace.
# При удалении отправляется ipSpaceName = "no-needed" (SNAT выключается).
resource "nubes_vc_nsxt_snat" "snat" {
nsxt_uid = nubes_vc_nsxt.edge.id
ip_space_name = var.ip_space_name
depends_on = [nubes_vc_org_ip_allocation.org_ip]
}
output "vdc_id" {
value = nubes_vc_vdc.vdc.id
}
output "nsxt_id" {
value = nubes_vc_nsxt.edge.id
}