Provisions an initial resource group and vnet with a NAT Gateway, private and public subnets.
Name | Version |
---|---|
azurerm | ~> 3.103.1 |
Name | Version |
---|---|
azurerm | ~> 3.103.1 |
No modules.
Name | Type |
---|---|
azurerm_nat_gateway.main | resource |
azurerm_nat_gateway_public_ip_association.main | resource |
azurerm_public_ip.nat | resource |
azurerm_resource_group.main | resource |
azurerm_subnet.private | resource |
azurerm_subnet.public | resource |
azurerm_subnet_nat_gateway_association.public | resource |
azurerm_virtual_network.main | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
nat_gateway_name | The name of the NAT gateway. | string |
"phidelNATGateway" |
no |
private_subnet_address | The address of the private subnet. | string |
"10.0.2.0/24" |
no |
private_subnet_name | The name of the private subnet. | string |
"privateSubnet" |
no |
public_ip_name | The name of the public IP. | string |
"phidelPublicIP" |
no |
public_subnet_address | The address of the public subnet. | string |
"10.0.1.0/24" |
no |
public_subnet_name | The name of the public subnet. | string |
"publicSubnet" |
no |
resource_group_location | The location of the resource group in which to create the Azure resources. | string |
"East US" |
no |
resource_group_name | The name of the resource group in which to create the Azure resources. | string |
n/a | yes |
vnet_address_space | The address space of the virtual network. | list(string) |
[ |
no |
vnet_name | The name of the virtual network. | string |
"phidelVNet" |
no |
Name | Description |
---|---|
private_subnet_id | The ID of the private subnet. |
public_subnet_id | The ID of the public subnet. |
virtual_network_id | The ID of the virtual network. |
Terraform tests let you validate your module configuration without impacting your existing state file or resources. Testing is a separate operation that is not part of a plan or apply workflow, but instead builds ephemeral infrastructure and tests your assertions against in-memory state for those short-lived resources. This lets you safely verify changes to your module without affecting your infrastructure.
- To execute test run
terraform init
terraform test