Giter VIP home page Giter VIP logo

terraform-azure-network's Introduction

License: GPL v3

Terraform Azure Network

Terraform module to deploy a simple resource group with network configuration. In most cases, this module is going to be used to get a starting point from where you can attach your other modules too. Check the tables of content to see the set of variables and outputs.

 

Table of Contents

 

Requirements

Software Version
terraform >=0.15.0
azruerm >=2.42.0

 

Getting started

In its simplest form, you can use the module by just providing adding it to your terraform file without adding any attributes. However, this should be only done in the testing environment, check the variable defaults to see the configuration. Take a look at the two usage examples to get a better understanding on how to deploy resources with this moudule.  

Basic usage:

module "network" {

    source = "github.com/holgerson97/terraform-azure-network"

}

 

Custom usage:

module "network" {

    source = "github.com/holgerson97/terraform-azure-network"

    namespace = "simple-app-service"
    location = "West Europe"

    vnet_address_spaces = [ "10.10.0.0/16" ]
    dns_servers         = [ "10.10.1.1", "10.10.1.2" ]
    vm_protections      = true

    subnet_address_spaces = [ "10.10.1.0/24", "10.10.2.0/24", "10.10.3.0/24" ]
}

 

Variables

Variable Type Description Default
enabled bool Enables the module to create resources. true
resourcegroup_name string Provide the name of your resourcegroup. If null module creates one. null
namespace string Naming prefix for resources deployed by this module. default-name
location string Location where to deploy. West Eruope
vnet_address_spaces list(string) List of CIDRs you want your VNET to provide. ["10.10.0.0./16]
dns_servers list(string) List of DNS servers for your VNET. If null no DNS Servers will be deployed. ["10.10.1.1", "10.10.1.2"]
vm_protection bool Enables the protection for your vms inside the VNET. false
ddos_protection bool Enables DDOS protection for your VNET. false
subnet_address_spaces list(string) List of subenets do depoy inside your VNET. ["10.10.1.0/24"]
private_link_endpoint_policies bool Enable NSG for your private link endpoint. false
private_link_service_policies bool Enable NSG for the private link service. false
service_endpoints list(string) The list of Service endpoints to associate with the subnet. null
service_endpoint_policy_ids list(string) List of subenets do depoy inside your VNET. null

Outputs

Name Value
resource_group_name Name of the resource group resources were deployed to by this module.
virtual_network_id ID of the virtual network that is going to be attached to the rg.
virtual_network_name Name of the virtual network that is going to be attached to the rg.
virtual_network_resource_group_name RG of the virtual network that is going to be attached to the rg.
virtual_network_location Location of the virtual network that is going to be attached to the rg.
virtual_network_address_space Address space of the virtual network that is going to be attached to the rg.
virtual_network_guid GUID of the resource group resources were deployed to by this module.
subnet_address_id IDs of the subnets that are attached to the virtual network.
subnet_address_name Names of the subnets that are attached to the virtual network.
subnet_address_resource_group_name RG of the subnets that are attached to the virtual network.
subnet_address_virtual_network_name VNET name of the subnets that are attached to the virtual network.
subnet_address_prefix Address prefix of the subnets that are attached to the virtual network.
subnet_address_prefixes Address prefixes of the subnets that are attached to the virtual network.
dns_servers_ip IPs of DNS server that are deployed inside your VNET.

 

Contributing

Feel free to create pull requests.

terraform-azure-network's People

Contributors

holgerson97 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

terraform-azure-network's Issues

Add Application Gateway for Subnets

Describe the feature you want.
Choose if a subnet should be configured to use an application gateway.

Why do you need this feature?
It's a basic feature for Azure networking.

What is required to implement this feature?
Add Terraform resource and unit tests.

Are you willing to submit a pull request to add this feature?
yes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.