Files
tf_examples/vm_v3_minimal/edge.tf
T

36 lines
1.1 KiB
Terraform

# Create the perimeter gateway and its routed network inside the VDC.
resource "nubes_vc_nsxt" "edge" {
# Name shown for this Edge service in the personal account.
resource_name = var.nsxt_resource_name
# Attach the gateway directly to a VDC, not to a VDC group.
vdc_type = "vdc"
# UUID of the VDC created above; this reference also orders creation.
vdc_uid = nubes_vc_vdc.vdc.id
# AVI/ALB is not needed for this standalone VM example.
need_enable_avi = false
# Only required when AVI/ALB is enabled; keep it null when ALB is disabled.
virtual_services_count = null
# Routed subnet and DNS servers assigned to VMs behind this Edge.
routed_net_configuration = {
# Non-overlapping /24 range for the routed network.
ip_addr_pool = var.nsxt_ip_addr_pool
# Primary DNS server configured in VMs.
main_dns = var.nsxt_main_dns
# Secondary DNS server configured in VMs.
second_dns = var.nsxt_second_dns
}
# Allow provider destroy handling to delete the Edge when dependencies permit.
keep_on_destroy = false
# Reuse an existing same-name Edge rather than failing during Create.
adopt_existing_on_create = true
}