Table of Contents generated with DocToc
Terraform module which creates the following resources on AZURE:
- virtual_network
- subnet
- 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.
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",
}
}
- Virtual network with 3 subnets
- Virtual network with DNS servers and 3 subnets
- Virtual network with 3 subnets with logs enabled
- Virtual network with 3 subnets with delegation
Name | Source | Version |
---|---|---|
logger | [email protected]:padok-team/terraform-azurerm-logger.git | v0.3.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
resource_group | The resource group resource. | object({ |
n/a | yes |
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 | The VNET name | string |
n/a | yes |
dns_servers | DNS servers associated with the virtual network. | list(string) |
null |
no |
enable_logging | Wether or not to enabled DiagnosticSetting | bool |
false |
no |
log_analytics_workspace_id | The ID of the log analytics workspace where the logs will be exported. | string |
null |
no |
subnets | A map of subnets with their CIDR block. | map(string) |
{} |
no |
subnets_delegations | A map of delegations configurations for each subnet keys. | map(object({ |
{} |
no |
subnets_service_endpoints | A map of service endpoint list for each subnet keys. | map(list(string)) |
{} |
no |
tags | A mapping of tags to assign to the resource. | map(string) |
null |
no |
Name | Description |
---|---|
subnets | A map of subnets. |
vnet | A virtual network resource instance. |
See LICENSE for full details.
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 at
https://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.