-
-
Save gowatana/30b9efbd28f176eed59d8a405a839762 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Terraform で FVN の NAT VPC を構成してみる。Part-06:VPC ~ 仮想マシンの作成(Module 化)
https://blog.ntnx.jp/entry/2025/06/16/022510