Skip to content

Azure Resource Group deployment with his network component (Peering, Vnet, Subnets)

License

Notifications You must be signed in to change notification settings

nomaddevops/azure_resource_group

Repository files navigation

Requirements

Name Version
terraform >= 1.6.3
azurerm >= 3.46.0

Providers

Name Version
azurerm >= 3.46.0

Modules

Name Source Version
peering ./modules/peering n/a
subnets ./modules/subnet n/a

Resources

Name Type
azurerm_policy_definition.rg_policy resource
azurerm_private_dns_zone.private_dns_zone resource
azurerm_private_dns_zone_virtual_network_link.link resource
azurerm_resource_group.rg resource
azurerm_resource_group_policy_assignment.rg_policy_assignment resource
azurerm_virtual_network.vnet resource

Inputs

Name Description Type Default Required
address_space Full CIDR notation for the resource group, this must match the convention x.x.x.x/x string "10.16.0.0/16" no
dns_zone n/a map(object({})) {} no
location Common name for the region to deploy, allowed location are France Central or France South string "francecentral" no
name Generic name of the resource group string null no
rg_policy_description Description of the resource group policy string "" no
rg_policy_mode Apply policy on resource type, All by default string "All" no
rg_policy_parameters Custom policy parameters to override the default one string null no
rg_policy_rule Custom policy to override default one string null no
rg_policy_type Type of policy to use string "Custom" no
subnet_config Map of object, where key is the subnet type to deploy(public, private, vpn) and it's multi-az configuration
map(object({
is_multi_az = optional(bool)
}))
{
"private": {},
"public": {},
"vpn": {}
}
no
vnet_peerings Configuration of virtual network peering
map(object({
rg = string
from_allow_virtual_network_access = optional(bool)
from_allow_forwarded_traffic = optional(bool)
from_allow_gateway_transit = optional(bool)
from_use_remote_gateways = optional(bool)

to_allow_virtual_network_access = optional(bool)
to_allow_forwarded_traffic = optional(bool)
to_allow_gateway_transit = optional(bool)
to_use_remote_gateways = optional(bool)
}))
{} no

Outputs

Name Description
resource_group Outputed attributes from the resource group creation (id,location,name)
rg [DEPRECATED] Created resource group
subnets Created subnets
vnet Created vnet

About

Azure Resource Group deployment with his network component (Peering, Vnet, Subnets)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages