Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created June 14, 2025 12:36
Show Gist options
  • Select an option

  • Save gowatana/5cc5af6195c1253f6c0e4aa72d4af661 to your computer and use it in GitHub Desktop.

Select an option

Save gowatana/5cc5af6195c1253f6c0e4aa72d4af661 to your computer and use it in GitHub Desktop.
resource "nutanix_subnet_v2" "ext-subnet1" {
name = "nw-vlan-21-extnat"
description = null
cluster_reference = data.nutanix_clusters_v2.cluster1.cluster_entities[0].ext_id
is_external = true
is_nat_enabled = true
network_id = 21
subnet_type = "VLAN"
ip_config {
ipv4 {
ip_subnet {
ip { value = "192.168.21.0" }
prefix_length = 24
}
default_gateway_ip { value = "192.168.21.1" }
pool_list {
start_ip { value = "192.168.21.10" }
end_ip { value = "192.168.21.29" }
}
}
}
}
@gowatana
Copy link
Author

gowatana commented Jun 14, 2025

下記の投稿むけ。

Terraform で FVN の NAT VPC を構成してみる。Part-04:VPC と仮想マシンの作成(tf ファイル分割)
https://blog.ntnx.jp/entry/2025/06/14/221256

Terraform で FVN の NAT VPC を構成してみる。Part-06:VPC ~ 仮想マシンの作成(Module 化)
https://blog.ntnx.jp/entry/2025/06/16/022510

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment