Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/padok-team/terraform-azurerm-network
Terraform module which creates a VNET and subnets on Azure.
https://github.com/padok-team/terraform-azurerm-network
azure azurerm network subnet terraform terraform-module virtual-network
Last synced: about 23 hours ago
JSON representation
Terraform module which creates a VNET and subnets on Azure.
- Host: GitHub
- URL: https://github.com/padok-team/terraform-azurerm-network
- Owner: padok-team
- License: apache-2.0
- Created: 2021-10-28T09:42:33.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-16T16:30:10.000Z (9 months ago)
- Last Synced: 2024-02-16T17:49:26.786Z (9 months ago)
- Topics: azure, azurerm, network, subnet, terraform, terraform-module, virtual-network
- Language: HCL
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# AZURE NETWORK Terraform module
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
- [User Stories for this module](#user-stories-for-this-module)
- [Usage](#usage)
- [Examples](#examples)
- [Modules](#modules)
- [Inputs](#inputs)
- [Outputs](#outputs)
- [License](#license)Terraform module which creates the following resources on **AZURE**:
- **virtual_network**
- **subnet**## User Stories for this module
- AAOps I can easily create a network which contains a VNET and multiple subnets.
- AAOps I can easily create a network with custom DNS servers which contains a VNET and multiple subnets.
- AAOps I can easily create a network and export its logs with a Monitor Diagnostic Setting.
- AAOps I can easily create a network which contains a VNET and multiple subnets with delegation.## Usage
```hcl
module "network" {
source = "[email protected]:padok-team/terraform-azurerm-network.git?ref=v0.1.0"resource_group = "my-rg-name"
vnet_name = "example_vnet"
vnet_address_space = ["10.0.0.0/8"]
subnets = {
"subnet1" = "10.0.0.0/16",
"subnet2" = "10.1.0.0/16",
"subnet3" = "10.2.0.0/16",
}
}
```## Examples
- [Virtual network with 3 subnets](examples/basic_network_example/main.tf)
- [Virtual network with DNS servers and 3 subnets](examples/network_with_dns/main.tf)
- [Virtual network with 3 subnets with logs enabled](examples/network_with_logging/main.tf)
- [Virtual network with 3 subnets with delegation](examples/network_with_subnet_delegation/main.tf)## Modules
| Name | Source | Version |
|------|--------|---------|
| [logger](#module\_logger) | [email protected]:padok-team/terraform-azurerm-logger.git | v0.3.0 |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [resource\_group](#input\_resource\_group) | The resource group resource. |object({| n/a | yes |
name = string
location = string
})
| [vnet\_address\_space](#input\_vnet\_address\_space) | The address space that is used the virtual network. You can supply more than one address space. | `list(string)` | n/a | yes |
| [vnet\_name](#input\_vnet\_name) | The VNET name | `string` | n/a | yes |
| [dns\_servers](#input\_dns\_servers) | DNS servers associated with the virtual network. | `list(string)` | `null` | no |
| [enable\_logging](#input\_enable\_logging) | Wether or not to enabled DiagnosticSetting | `bool` | `false` | no |
| [log\_analytics\_workspace\_id](#input\_log\_analytics\_workspace\_id) | The ID of the log analytics workspace where the logs will be exported. | `string` | `null` | no |
| [subnets](#input\_subnets) | A map of subnets with their CIDR block. | `map(string)` | `{}` | no |
| [subnets\_delegations](#input\_subnets\_delegations) | A map of delegations configurations for each subnet keys. |map(object({| `{}` | no |
name = string
service_delegation = object({
name = string
actions = list(string)
})
}))
| [subnets\_service\_endpoints](#input\_subnets\_service\_endpoints) | A map of service endpoint list for each subnet keys. | `map(list(string))` | `{}` | no |
| [tags](#input\_tags) | A mapping of tags to assign to the resource. | `map(string)` | `null` | no |## Outputs
| Name | Description |
|------|-------------|
| [subnets](#output\_subnets) | A map of subnets. |
| [vnet](#output\_vnet) | A virtual network resource instance. |## License
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
See [LICENSE](LICENSE) for full details.
```text
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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 athttps://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.
```