vWAN - azure verified module for terraform
Description
I am trying to use AVM virtual WAN pattern module for terraform using with long variables.tf and local.tf. In order to pass values to object variables in specific object variable I created separate auto.tfvars for the vhub, firewall, er_connection, vpn etc. The challenge I see one single module with large amount of variables. Being a PTN module it does not have much specific option to divide module as I am passing whole object from variable to each section of the module. Another challenge I see unable to use composition for Terraform module by using naming module at local.tf as naming module and prefix and suffix had to added under each variable block which failed to convert.
module "vwan_with_vhub" { source = "Azure/avm-ptn-virtualwan/azurerm" resource_group_name = local.resource_group_name
location = local.location #var.location
virtual_wan_name = local.virtual_wan_name #var.virtual_wan_name create_resource_group = true
disable_vpn_encryption = var.disable_vpn_encryption allow_branch_to_branch_traffic = var.allow_branch_to_branch_traffic // bgp_community = "12076:51010"
type = "Standard"
virtual_wan_tags = local.tags
virtual_hubs = local.virtual_hubs
vpn_gateways = local.vpn_gateways
vpn_sites = var.vpn_sites
firewalls = local.firewalls
vpn_site_connections = local.vpn_site_connections
}