-
-
Save gowatana/caf0d1185ca970fd8dc68653e9f5ad7e to your computer and use it in GitHub Desktop.
This file contains 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 "vcd_nsxt_edgegateway" "nsxt-edge-01" { | |
name = "org-01-edge-01" | |
} | |
output "edge_id" { | |
value = data.vcd_nsxt_edgegateway.nsxt-edge-01.id | |
} | |
resource "vcd_nsxt_nat_rule" "dnat1" { | |
edge_gateway_id = data.vcd_nsxt_edgegateway.nsxt-edge-01.id | |
name = "tf-dnat-104" | |
rule_type = "DNAT" | |
external_address = "192.168.31.104" | |
internal_address = vcd_vapp_vm.vapp1-vm1.network[0].ip | |
firewall_match = "BYPASS" | |
logging = false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
下記の投稿むけ。
VMware Cloud Director 10.4 を Terraform で操作してみる。Part-04 VM 作成と DNAT ルール設定
https://vm.gowatana.jp/entry/2022/11/19/163715