Azure / terraform-azurerm-caf-enterprise-scale

Azure landing zones Terraform module
https://aka.ms/alz/tf
MIT License
855 stars 562 forks source link

Ability to customise internet_security_enabled setting for VirtualHubConnections #1140

Open CF-JWild opened 3 weeks ago

CF-JWild commented 3 weeks ago

Community Note

Description

The internet_security_enabled argument for azurerm_virtual_hub_connection allows you to enable default route propagation from the hub to the connection. At the moment in the module this isn't a configurable option, it'd be great if this was customisable per connection.

Is your feature request related to a problem?

We're trying to integrate Bastion into our Virtual WAN deployment, which requires creating a new spoke vnet for Bastion, then disabling the "Propagate Default Route" (or "internet_security_enabled" through Terraform), as the default 0.0.0.0/0 route prevents Bastion from running correctly.

Describe the solution you'd like

Add a custom setting to specify which connections you want to disable the setting for:

secure_spoke_virtual_network_resource_ids = [module.example_vnet1.id, module.bastion_vnet.id] disable_internet_security_spoke_vnet_ids = [module.bastion_vnet.id]