https://github.com/opszero/terraform-azurerm-subnet
https://github.com/opszero/terraform-azurerm-subnet
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/opszero/terraform-azurerm-subnet
- Owner: opszero
- License: other
- Created: 2025-06-03T08:59:37.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-11-24T19:26:38.000Z (2 months ago)
- Last Synced: 2025-11-28T07:31:18.709Z (2 months ago)
- Language: HCL
- Size: 40 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Support: SUPPORT
Awesome Lists containing this project
README
## Providers
| Name | Version |
|------|---------|
| [azurerm](#provider\_azurerm) | >= 4.2.0 |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [bgp\_route\_propagation\_enabled](#input\_bgp\_route\_propagation\_enabled) | Boolean flag which controls propagation of routes learned by BGP on that route table. | `bool` | `false` | no |
| [create\_nat\_gateway](#input\_create\_nat\_gateway) | Flag to control nat gateway creation. | `bool` | `false` | no |
| [default\_outbound\_access\_enabled](#input\_default\_outbound\_access\_enabled) | Enable default outbound access to the internet for the subnet. Defaults to true. | `bool` | `true` | no |
| [delegation](#input\_delegation) | Configuration delegations on subnet
object({
name = object({
name = string,
actions = list(string)
})
}) | `map(list(any))` | `{}` | no |
| [enable](#input\_enable) | Flag to control the module creation | `bool` | `true` | no |
| [enable\_route\_table](#input\_enable\_route\_table) | Flag to control route table creation. | `bool` | `true` | no |
| [environment](#input\_environment) | Environment (e.g. `prod`, `dev`, `staging`). | `string` | `""` | no |
| [label\_order](#input\_label\_order) | Label order, e.g. `name`,`application`. | `list(any)` |
[
"name",
"environment"
]
| no |
| [location](#input\_location) | The location/region where the virtual network is created. Changing this forces a new resource to be created. | `string` | `""` | no |
| [managedby](#input\_managedby) | ManagedBy, eg 'info@opszero.com' | `string` | `"info@opszero.com"` | no |
| [name](#input\_name) | Name (e.g. `app` or `cluster`). | `string` | `""` | no |
| [nat\_gateway\_idle\_timeout](#input\_nat\_gateway\_idle\_timeout) | Idle timeout configuration in minutes for Nat Gateway | `number` | `4` | no |
| [public\_ip\_zones](#input\_public\_ip\_zones) | Public ip Zones to configure. | `list(string)` | `null` | no |
| [repository](#input\_repository) | Terraform current module repo | `string` | `"https://github.com/opszero/terraform-azure-subnet"` | no |
| [resource\_group\_name](#input\_resource\_group\_name) | The name of an existing resource group to be imported. | `string` | `""` | no |
| [route\_table\_name](#input\_route\_table\_name) | The name of the route table. | `string` | `null` | no |
| [routes](#input\_routes) | List of objects that represent the configuration of each route. | `list(map(string))` | `[]` | no |
| [service\_endpoints](#input\_service\_endpoints) | A map with key (string) `subnet name`, value (list(string)) to indicate enabled service endpoints on the subnet. Default value is []. | `list(string)` | `[]` | no |
| [specific\_name\_subnet](#input\_specific\_name\_subnet) | n/a | `bool` | `false` | no |
| [specific\_subnet\_names](#input\_specific\_subnet\_names) | A list of subnets inside the vNet. | `string` | `""` | no |
| [subnet\_enforce\_private\_link\_endpoint\_network\_policies](#input\_subnet\_enforce\_private\_link\_endpoint\_network\_policies) | A map with key (string) `subnet name`, value (bool) `true` or `false` to indicate enable or disable network policies for the private link endpoint on the subnet. Default value is false. | `map(bool)` | `{}` | no |
| [subnet\_enforce\_private\_link\_service\_network\_policies](#input\_subnet\_enforce\_private\_link\_service\_network\_policies) | A map with key (string) `subnet name`, value (bool) `true` or `false` to indicate enable or disable network policies for the private link endpoint on the subnet. Default value is false. | `bool` | `true` | no |
| [subnet\_names](#input\_subnet\_names) | A list of public subnets inside the vNet. | `list(string)` | `[]` | no |
| [subnet\_prefixes](#input\_subnet\_prefixes) | The address prefix to use for the subnet. | `list(string)` | `[]` | no |
| [tags](#input\_tags) | Additional tags (e.g. map(`BusinessUnit`,`XYZ`). | `map(string)` | `{}` | no |
| [virtual\_network\_name](#input\_virtual\_network\_name) | The name of the virtual network in which the subnet is created in | `string` | `""` | no |
## Resources
| Name | Type |
|------|------|
| [azurerm_nat_gateway.natgw](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/nat_gateway) | resource |
| [azurerm_nat_gateway_public_ip_association.pip_assoc](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/nat_gateway_public_ip_association) | resource |
| [azurerm_public_ip.pip](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/public_ip) | resource |
| [azurerm_route_table.rt](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/route_table) | resource |
| [azurerm_subnet.specific_subnet](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet) | resource |
| [azurerm_subnet.subnet](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet) | resource |
| [azurerm_subnet_nat_gateway_association.subnet_assoc](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet_nat_gateway_association) | resource |
| [azurerm_subnet_route_table_association.main](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet_route_table_association) | resource |
| [azurerm_subnet_route_table_association.main2](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet_route_table_association) | resource |
## Outputs
| Name | Description |
|------|-------------|
| [default\_subnet\_address\_prefixes](#output\_default\_subnet\_address\_prefixes) | The address prefixes for the subnet. |
| [default\_subnet\_id](#output\_default\_subnet\_id) | The subnet ID. |
| [default\_subnet\_name](#output\_default\_subnet\_name) | The name of the subnet. |
| [nat\_gateway\_id](#output\_nat\_gateway\_id) | The ID of the NAT Gateway. |
| [public\_ip\_address](#output\_public\_ip\_address) | The IP address value that was allocated. |
| [public\_ip\_id](#output\_public\_ip\_id) | The ID of this Public IP. |
| [route\_table\_associated\_subnets](#output\_route\_table\_associated\_subnets) | The collection of Subnets associated with this route table. |
| [route\_table\_id](#output\_route\_table\_id) | The Route Table ID. |
| [specific\_subnet\_address\_prefixes](#output\_specific\_subnet\_address\_prefixes) | The address prefixes for the subnet. |
| [specific\_subnet\_id](#output\_specific\_subnet\_id) | The subnet ID. |
| [specific\_subnet\_name](#output\_specific\_subnet\_name) | The name of the subnet. |
# 🚀 Built by opsZero!
[opsZero](https://opszero.com) provides software and consulting for Cloud + AI. With our decade plus of experience scaling some of the world’s most innovative companies we have developed deep expertise in Kubernetes, DevOps, FinOps, and Compliance.
Our software and consulting solutions enable organizations to:
- migrate workloads to the Cloud
- setup compliance frameworks including SOC2, HIPAA, PCI-DSS, ITAR, FedRamp, CMMC, and more.
- FinOps solutions to reduce the cost of running Cloud workloads
- Kubernetes optimized for web scale and AI workloads
- finding underutilized Cloud resources
- setting up custom AI training and delivery
- building data integrations and scrapers
- modernizing onto modern ARM based processors
We do this with a high-touch support model where you:
- Get access to us on Slack, Microsoft Teams or Email
- Get 24/7 coverage of your infrastructure
- Get an accelerated migration to Kubernetes
Please [schedule a call](https://calendly.com/opszero-llc/discovery) if you need support.
