{"id":26716831,"url":"https://github.com/global-vmware/vcd_nsxt_nat_rule","last_synced_at":"2025-08-08T13:16:43.914Z","repository":{"id":162260757,"uuid":"636846277","full_name":"global-vmware/vcd_nsxt_nat_rule","owner":"global-vmware","description":"This Repository contains the \"vcd_nsxt_nat_rule\" Terraform Module. You can use this Module to deploy NSX-T Edge Gateway NAT Rules into a VMware Cloud Director (VCD) Environment.","archived":false,"fork":false,"pushed_at":"2023-12-11T21:27:09.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T15:53:55.624Z","etag":null,"topics":["infrastructure-as-code","networking","terraform","terraform-module","vmware","vmware-nsx"],"latest_commit_sha":null,"homepage":"https://www.rackspace.com/cloud/vmware","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/global-vmware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-05T19:36:34.000Z","updated_at":"2023-05-11T17:15:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"8cdfb9e4-d6b4-4ebe-91f9-7b499a84df52","html_url":"https://github.com/global-vmware/vcd_nsxt_nat_rule","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/global-vmware/vcd_nsxt_nat_rule","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/global-vmware%2Fvcd_nsxt_nat_rule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/global-vmware%2Fvcd_nsxt_nat_rule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/global-vmware%2Fvcd_nsxt_nat_rule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/global-vmware%2Fvcd_nsxt_nat_rule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/global-vmware","download_url":"https://codeload.github.com/global-vmware/vcd_nsxt_nat_rule/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/global-vmware%2Fvcd_nsxt_nat_rule/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269427633,"owners_count":24415167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["infrastructure-as-code","networking","terraform","terraform-module","vmware","vmware-nsx"],"created_at":"2025-03-27T15:47:56.696Z","updated_at":"2025-08-08T13:16:43.862Z","avatar_url":"https://github.com/global-vmware.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"## VCD NSX-T Edge Gateway NAT Rules Terraform Module\n\nThis Terraform module will deploy NSX-T Edge Gateway NAT Rules into an existing VMware Cloud Director (VCD) Environment.  This module can be used to provision new NAT Rules into [Rackspace Technology SDDC Flex](https://www.rackspace.com/cloud/private/software-defined-data-center-flex) VCD Data Center Regions.\n\n## Requirements\n\n| Name      | Version |\n|-----------|---------|\n| terraform | ~\u003e 1.2  |\n| vcd       | ~\u003e 3.8.2 |\n\n## Resources\n\n| Name                                                             | Type      |\n|------------------------------------------------------------------|-----------|\n| [vcd_vdc_group](https://registry.terraform.io/providers/vmware/vcd/3.8.2/docs/data-sources/vdc_group) | data source |\n| [vcd_nsxt_edgegateway](https://registry.terraform.io/providers/vmware/vcd/3.8.2/docs/data-sources/nsxt_edgegateway) | data source |\n| [vcd_nsxt_nat_rule](https://registry.terraform.io/providers/vmware/vcd/3.8.2/docs/resources/nsxt_nat_rule) | resource   |\n\n## Inputs\n\n| Name                          | Description                                                          | Type   | Default           | Required |\n|-------------------------------|----------------------------------------------------------------------|--------|-------------------|----------|\n| vdc_org_name | The name of the Data Center Group Organization in VCD | string | `\"Organization Name Format: \u003cAccount_Number\u003e-\u003cRegion\u003e-\u003cAccount_Name\u003e\"` | yes |\n| vdc_group_name | The name of the Data Center Group in VCD | string | `\"Data Center Group Name Format: \u003cAccount_Number\u003e-\u003cRegion\u003e-\u003cAccount_Name\u003e \u003cdatacenter group\u003e\"` | yes |\n| vdc_edge_name | Name of the Data Center Group Edge Gateway | string | `\"Edge Gateway Name Format: \u003cAccount_Number\u003e-\u003cRegion\u003e-\u003cEdge_GW_Identifier\u003e-\u003cedge\u003e\"` | yes |\n| nat_rules | Map of NAT rules to create | map(object({\u003cbr\u003e\u0026nbsp;\u0026nbsp;rule_type = string\u003cbr\u003e\u0026nbsp;\u0026nbsp;name = string\u003cbr\u003e\u0026nbsp;\u0026nbsp;description = optional(string)\u003cbr\u003e\u0026nbsp;\u0026nbsp;external_address = optional(string)\u003cbr\u003e\u0026nbsp;\u0026nbsp;internal_address = optional(string)\u003cbr\u003e\u0026nbsp;\u0026nbsp;snat_destination_address = optional(string)\u003cbr\u003e\u0026nbsp;\u0026nbsp;dnat_external_port = optional(string)\u003cbr\u003e\u0026nbsp;\u0026nbsp;app_port_profile_id = optional(string)\u003cbr\u003e\u0026nbsp;\u0026nbsp;logging = optional(bool)\u003cbr\u003e\u0026nbsp;\u0026nbsp;firewall_match = optional(string)\u003cbr\u003e\u0026nbsp;\u0026nbsp;priority = optional(number)\u003cbr\u003e})) | N/A | yes |\n\n## Outputs\n\n| Name         | Description             |\n|--------------|-------------------------|\n| nat_rules | The NAT rules created |\n\n## Example Usage\n\nThis is an example of a `main.tf` file that uses the `\"github.com/global-vmware/vcd_nsxt_nat_rule\"` Module source to create NAT rules for an NSX-T Edge Gateway in a VMware Cloud Director environment:\n\n```terraform\nmodule \"vcd_nsxt_nat_rule\" {\n  source                    = \"github.com/global-vmware/vcd_nsxt_nat_rule.git?ref=v1.3.2\"\n  \n  vdc_org_name              = \"\u003cUS1-VDC-ORG-NAME\u003e\"\n  vdc_group_name            = \"\u003cUS1-VDC-GRP-NAME\u003e\"\n  vdc_edge_name             = \"\u003cUS1-VDC-EDGE-NAME\u003e\"\n\n  nat_rules = {\n    \"192.168.0.0/24_SNAT\"     = {\n      rule_type             = \"SNAT\"\n      name                  = \"172.16.0.0/24_SNAT\"\n      external_address      = \"8.8.8.8\"\n      internal_address      = \"172.16.0.0/24\"\n      logging               = false\n    },\n    \"192.168.0.10_DNAT-HTTP\"  = {\n      rule_type             = \"DNAT\"\n      name                  = \"172.16.0.10_DNAT-HTTP\"\n      external_address      = \"8.8.8.8\"\n      internal_address      = \"172.16.0.10\"\n      dnat_external_port    = \"80\"\n      logging               = false\n    }\n  }\n}\n```\n\n## Authors\n\nThis module is maintained by the [Global VMware Cloud Automation Services Team](https://github.com/global-vmware).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobal-vmware%2Fvcd_nsxt_nat_rule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglobal-vmware%2Fvcd_nsxt_nat_rule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobal-vmware%2Fvcd_nsxt_nat_rule/lists"}