Skip to content

Instantly share code, notes, and snippets.

@gowatana

gowatana/dnat.tf Secret

Created November 19, 2022 07:25
Show Gist options
  • Save gowatana/caf0d1185ca970fd8dc68653e9f5ad7e to your computer and use it in GitHub Desktop.
Save gowatana/caf0d1185ca970fd8dc68653e9f5ad7e to your computer and use it in GitHub Desktop.
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
}
@gowatana
Copy link
Author

下記の投稿むけ。

VMware Cloud Director 10.4 を Terraform で操作してみる。Part-04 VM 作成と DNAT ルール設定
https://vm.gowatana.jp/entry/2022/11/19/163715

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