Add Terraform quickstart template for Azure NAT Gateway Standard V2#479
Open
asudbring wants to merge 7 commits intoAzure:masterfrom
Open
Add Terraform quickstart template for Azure NAT Gateway Standard V2#479asudbring wants to merge 7 commits intoAzure:masterfrom
asudbring wants to merge 7 commits intoAzure:masterfrom
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new Terraform quickstart template (
quickstart/101-nat-gateway-v2-create/) that deploys an Azure NAT Gateway using the Standard V2 SKU. This template is the Terraform equivalent of the Bicep template in the Quickstart: Create a Standard V2 Azure NAT Gateway - Deployment templates article, intended to be referenced from a new "Terraform" tab in that documentation.Resources deployed
The template creates all resources matching the Bicep template in the article:
azurerm_resource_groupazurerm_nat_gatewaysku_name = "StandardV2"(zone-redundant by default)azurerm_public_ipsku = "StandardV2", Static allocation, IPv4azurerm_nat_gateway_public_ip_associationazurerm_virtual_networkazurerm_subnetazurerm_subnet_nat_gateway_associationazurerm_network_security_groupazurerm_network_interfaceazurerm_network_interface_security_group_associationazurerm_linux_virtual_machineazurerm_bastion_hosttls_private_keyTemplate structure
Follows this repo's standard quickstart conventions:
providers.tf— azurerm ~>4.0, random ~>3.0, tls ~>4.0variables.tf— resource_group_location (centralus), resource_group_name_prefix, usernamemain.tf— All Azure resourcesssh.tf— TLS SSH key generationoutputs.tf— resource_group_name, nat_gateway_name, nat_gateway_id, locationreadme.md— Standard format with resource types table and variablesTestRecord.md— Placeholder for CI test resultsKey differences from existing
101-nat-gateway-create101-nat-gateway-create(existing)101-nat-gateway-v2-create(new)Testing
Validated locally with Terraform v1.13+ and azurerm v4.67.0:
terraform fmt— passed (no formatting issues)terraform validate— passed (configuration is valid)terraform plan— 16 resources planned successfullyterraform apply— all 14 Azure resources deployed successfully tocentralusterraform destroy— all 14 resources cleaned up successfullyRelated documentation