Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

clouddrove/terraform-azure-networking

Terraform AZURE VIRTUAL-NETWORK

Terraform module to create VIRTUAL-NETWORK resource on AZURE.

Terraform Licence


Prerequisites

This module has a few dependencies:

IMPORTANT: Since the master branch used in source varies based on new modifications, we suggest that you use the release versions here.

Simple Example

Here is an example of how you can use this module in your inventory structure:

module "virtual-network" {
 source              = "clouddrove/virtual-network/azure"
 environment         = "test"
 label_order         = ["name", "environment"]
 name                = "example"
 resource_group_name = module.resource_group.resource_group_name
 location            = module.resource_group.resource_group_location
 address_space       = "10.0.0.0/16"
 subnet_names        = ["subnet1"]
 subnet_prefixes     = ["10.0.1.0/24"]
 enable_ddos_pp      = true
 }

Inputs

Name Description Type Default Required
address_space The address space that is used by the virtual network. string "" no
address_spaces The list of the address spaces that is used by the virtual network. list(string) [] no
attributes Additional attributes (e.g. 1). list(any) [] no
delimiter Delimiter to be used between organization, environment, name and attributes. string "-" no
dns_servers The DNS servers to be used with vNet. list(string) [] no
enable Flag to control the module creation bool true no
enable_ddos_pp Flag to control the resource creation bool false no
environment Environment (e.g. prod, dev, staging). string "" no
label_order Label order, e.g. name,application. list(any) [] no
location The location/region where the virtual network is created. Changing this forces a new resource to be created. string "" no
managedby ManagedBy, eg 'CloudDrove'. string "hello@clouddrove.com" no
name Name (e.g. app or cluster). string "" no
repository Terraform current module repo string "https://github.com/clouddrove/terraform-azure-virtual-network" no
resource_group_name The name of an existing resource group to be imported. string "" no
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_names A list of public subnets inside the vNet. list(string) [] no
subnet_prefixes The address prefix to use for the subnet. list(string) [] no
subnet_service_endpoints A map with key (string) subnet name, value (list(string)) to indicate enabled service endpoints on the subnet. Default value is []. map(list(string)) {} no
tags Additional tags (e.g. map(BusinessUnit,XYZ). map(any) {} no

Outputs

Name Description
vnet_address_space The address space of the newly created vNet
vnet_id The id of the newly created vNet
vnet_location The location of the newly created vNet
vnet_name The name of the newly created vNet
vnet_subnets The ids of subnets created inside the newly created vNet

Feedback

If you come accross a bug or have any feedback, please log it in our issue tracker, or feel free to drop us an email at hello@clouddrove.com.

If you have found it worth your time, go ahead and give us a ★ on our GitHub!

About us

At CloudDrove, we offer expert guidance, implementation support and services to help organisations accelerate their journey to the cloud. Our services include docker and container orchestration, cloud migration and adoption, infrastructure automation, application modernisation and remediation, and performance engineering.

We are The Cloud Experts!


We ❤️ Open Source and you can check out our other modules to get help with your new Cloud ideas.