Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Resource]: Add cloudavenue_edgegateway_nat_rule #355

Closed
dmicheneau opened this issue Jun 28, 2023 · 0 comments · Fixed by #434
Closed

[New Resource]: Add cloudavenue_edgegateway_nat_rule #355

dmicheneau opened this issue Jun 28, 2023 · 0 comments · Fixed by #434

Comments

@dmicheneau
Copy link
Member

Description

Provides a resource to manage NSX-T NAT rules.

Requested Resource(s) and/or Data Source(s)

  • cloudavenue_edgegateway_nat_rule

Potential Terraform Configuration

data "vcd_nsxt_edgegateway" "main" {
   name = "tn01e02ocb0006205spt103"
}

resource "vcd_nsxt_nat_rule" "snat" {
  edge_gateway_id = data.vcd_nsxt_edgegateway.main.id

  name        = "SNAT rule"
  rule_type   = "SNAT"
  description = "description"

  # Using primary_ip from edge gateway
  external_address         = tolist(data.vcd_nsxt_edgegateway.main.subnet)[0].primary_ip
  internal_address         = "11.11.11.0/24"
  snat_destination_address = "8.8.8.8"
  logging                  = true
}


### References

https://registry.terraform.io/providers/vmware/vcd/latest/docs/resources/nsxt_nat_rule

### Would you like to implement a fix?

None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant