Skip to content

OT-terraform-azure-modules/terraform-azure-subnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Subnet Terraform Module

Opstree Solutions

Opstree Solutions

  • Terraform module which creates Subnet(s) on Azure.

  • This project is a part of open source intiative For Azure Terraform Modules.

  • This version of subnet module contains delegation block

These types of resources are supported:

Terraform versions

Terraform 1.0.8.

Resources

Name Type
azurerm_subnet.module_subnet resource

Inputs

Name Description Type Default Required
subnet_name Name of the subnet list(string) yes
subnet_address_prefixes Address prefix to associate with the subnet list(string) yes
vnet_name Name of Virtual Network in which Subnet would be created string yes
resource_group_name The name of the resource group in which to create the virtual network. string Yes
delegation_name A name for this delegation string yes
delegation_service_name The service to which it is delegated string yes
delegation_actions A list of Actions which should be delegated list(string) yes
service_endpoints The list of Service endpoints to associate with the subnet list(string) yes

Output

Name Description
subnet_id This variable will give all the details of Subnets

Usage

module "res_group" {
  source                  = "OT-terraform-azure-modules/resource-group/azure"
  resource_group_name     = ""
  resource_group_location = ""
  tag_map = {
    Name = "azure_rg"
  }
}

module "Vnet" {
  source        = "OT-terraform-azure-modules/virtual-network/azure"
  rg_name       = module.res_group.resource_group_name
  vnet_name     = ""
  vnet_location = module.res_group.resource_group_location
  address_space = [" "]
  dns_servers   = [" ", " "]

}

module "subnet_module" {
  source                  = "OT-terraform-azure-modules/subnet/azure"
  rg_name                 = module.res_group.resource_group_name
  vnet_name               = module.Vnet.vnet_name
  subnet_name             = [" ", " "]
  subnet_address_prefixes = [" ", " "]
  delegation_name         = var.delegation_name
  service_name            = var.service_name
  actions                 = var.actions
  service_endpoints       = var.service_endpoints
}

Contributors

Kritarth Pant
Kritarth Pant

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages