Closed WibblyDibbler closed 11 months ago
Hi @WibblyDibbler
Thanks for reporting. We are looking into this
Hi @WibblyDibbler,
From my investigation into this, I believe the way the peerings are configured are correct as they are.
You are certainly correct about not being able to toggle allowGatewayTransit
today in the module however, you can toggle hub_peering_use_remote_gateways
to control whether the spoke although I think I may of spotted a bug there.
Just doing some testing but initially this doesn't look to be incorrect.
cc: @matt-FFFFFF
Forgot to add this is the same as Bicep Sub Vending:
Okay so did some testing and I think how it is today is correct, see below for why.
I opened this issue because the peerings as displayed in the Azure Portal showed otherwise. Unfortunately, I did not take a screenshot, and the language appears to have changed - I have no idea how to verify that. Either way, this all looks good. Sorry for the run-around.
Community Note
Versions
Please paste the output of
terraform version
command from within the initialized directory:Please enter the module version that you are using:
Description
The azapi_resource references for peering_hub_outbound and peering_hub_inbound do not allow configuration of allowGatewayTransit. Oddly, peering_hub_outbound is hard-coded to false, and peering_hub_inbound is hard-coded to true. A typical hub-and-spoke network should have those swapped, i.e. the spoke should be able to allow gateway transit from networks not in the hub - not the other way around. Either way, let the module consumers decide which is allowed when in the event they have/want some non-standard network topology.
Steps to Reproduce
Additional context
The terraform plan plan for module 3.4.1 shows no changes relative to this, and the module source indicates no support as of commit ID d17ad87e64fa81c0c7c068cde0fa575b4d4a3fef.