Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created June 15, 2025 17:06
Show Gist options
  • Select an option

  • Save gowatana/30b9efbd28f176eed59d8a405a839762 to your computer and use it in GitHub Desktop.

Select an option

Save gowatana/30b9efbd28f176eed59d8a405a839762 to your computer and use it in GitHub Desktop.
data "nutanix_route_tables_v2" "table1" {
filter = "vpcReference eq '${nutanix_vpc_v2.vpc1.ext_id}'"
}
resource "nutanix_routes_v2" "route1" {
name = "route1"
vpc_reference = nutanix_vpc_v2.vpc1.ext_id
route_type = "STATIC"
route_table_ext_id = data.nutanix_route_tables_v2.table1.route_tables[0].ext_id
destination {
ipv4 {
ip { value = "0.0.0.0" }
prefix_length = 0
}
}
next_hop {
next_hop_type = "EXTERNAL_SUBNET"
next_hop_reference = data.nutanix_subnets_v2.ext-subnet1.subnets[0].ext_id
}
}
@gowatana
Copy link
Author

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