Terraform module to generate virtual network, subnet, dns_zones.
Name | Version |
---|---|
terraform | >= 1.7 |
azurerm | >= 4 |
Name | Version |
---|---|
azurerm | >= 4 |
No modules.
Name | Type |
---|---|
azurerm_nat_gateway.this | resource |
azurerm_nat_gateway_public_ip_association.this | resource |
azurerm_network_security_group.this | resource |
azurerm_network_security_rule.allow_https_in_from_vnets | resource |
azurerm_network_security_rule.allow_https_out_to_vnets | resource |
azurerm_network_security_rule.deny_any_any_any_in | resource |
azurerm_network_security_rule.deny_any_any_any_out | resource |
azurerm_private_dns_zone.this | resource |
azurerm_private_dns_zone_virtual_network_link.this | resource |
azurerm_public_ip.this | resource |
azurerm_resource_group.this | resource |
azurerm_subnet.this | resource |
azurerm_subnet_nat_gateway_association.this | resource |
azurerm_subnet_network_security_group_association.this | resource |
azurerm_virtual_network.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
vnet_name | The name of the virtual network. | string |
n/a | yes |
natgateway | This object describes the public IP configuration when creating Nat Gateway's with a public IP. If creating more than one public IP, then these values will be used for all public IPs. - allocation_method = (Required) - Defines the allocation method for this IP address. Possible values are Static or Dynamic.- ddos_protection_mode = (Optional) - The DDoS protection mode of the public IP. Possible values are Disabled, Enabled, and VirtualNetworkInherited. Defaults to VirtualNetworkInherited.- ddos_protection_plan_id = (Optional) - The ID of DDoS protection plan associated with the public IP. ddos_protection_plan_id can only be set when ddos_protection_mode is Enabled- domain_name_label = (Optional) - Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.- idle_timeout_in_minutes = (Optional) - Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.- inherit_tags = (Optional) - Defaults to false. Set this to false if only the tags defined on this resource should be applied. - Future functionality leaving in.- ip_version = (Optional) - The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created. Only static IP address allocation is supported for IPv6.- lock_level = (Optional) - Set this value to override the resource level lock value. Possible values are None , CanNotDelete , and ReadOnly .- name = (Optional) - The name of the Nat gateway. Changing this forces a new resource to be created.- sku = (Optional) - The SKU of the Public IP. Accepted values are Basic and Standard. Defaults to Standard to support zones by default. Changing this forces a new resource to be created. When sku_tier is set to Global, sku must be set to Standard.- sku_tier = (Optional) - The SKU tier of the Public IP. Accepted values are Global and Regional. Defaults to Regional- zones = (Optional) - A list of zones where this public IP should be deployed. Defaults to no zone. if you prefer, you can set other values for the zones ["1","2","3"]. Changing this forces a new resource to be created.Example Inputs: hclhcl |
object({ |
null |
no |
private_dns | The name of the private DNS zone. | map(object({ |
null |
no |
public_ip | The name of the public IP. | object({ |
{} |
no |
resource_group | The name of the resource group in which to create the resources. | object({ |
{ |
no |
subnets | This object describes the subnets to create within the virtual network. - address_prefix = (Optional) - The address prefix to use for the subnet. Changing this forces a new resource to be created.- address_prefixes = (Optional) - The address prefixes to use for the subnet. Changing this forces a new resource to be created.- name = (Optional) - The name of the subnet. Changing this forces a new resource to be created.- nat_gateway = (Optional) - The NAT Gateway to associate with the subnet. Changing this forces a new resource to be created.- network_security_group = (Optional) - The Network Security Group to associate with the subnet. Changing this forces a new resource to be created.- private_endpoint_network_policies = (Optional) - The network policies for private endpoints on the subnet. Possible values are Enabled and Disabled. Defaults to Enabled.- private_link_service_network_policies_enabled = (Optional) - Enable or disable network policies for private link service on the subnet. Defaults to true.- route_table = (Optional) - The Route Table to associate with the subnet. Changing this forces a new resource to be created.- service_endpoint_policies = (Optional) - The service endpoint policies to associate with the subnet. Changing this forces a new resource to be created.- service_endpoints = (Optional) - The service endpoints to associate with the subnet. Changing this forces a new resource to be created.- default_outbound_access_enabled = (Optional) - Whether to allow outbound traffic from the subnet. Defaults to false.- sharing_scope = (Optional) - The sharing scope of the subnet. Possible values are None, Shared, and Service. Defaults to None.- delegate_to = (Optional) - The service to delegate to. Changing this forces a new resource to be created.- timeouts = (Optional) - The timeouts for the subnet.- role_assignments = (Optional) - The role assignments for the subnet.Example Inputs: hclhcl |
map(object({ |
{} |
no |
tags | A map of tags to assign to the resource. | map(string) |
{} |
no |
vnet_address_space | The address space that is used by the virtual network. | list(string) |
[ |
no |
vnet_dns_servers | The DNS servers to be used by the virtual network. | list(string) |
[] |
no |
Name | Description |
---|---|
id | The ID of the virtual network |
name | The name of the virtual network |
private_dns_zone_list | A map of private DNS zone names to their corresponding names and IDs |
subnet_list | A map of subnet names to their corresponding names and IDs |
Copyright: Schuberg Philis
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.