Closed jeheyer closed 1 year ago
Labelling as upstream since the provider is defaulting to whatever the API returns, as well as using the same documentation.
Created b/272789525 internally to track.
Thanks, I'm working with Google right now to get a documentation bug on their end. I ended up having to do some trial & error testing to get this parameter working as expected and just trying to save other folks the headache.
API documentation was updated, and the provider documentation should be updated when https://github.com/GoogleCloudPlatform/magic-modules/pull/7625 is released.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
1.3.6
Affected Resource(s)
Terraform Configuration Files
Debug Output
TF plan output:
Panic Output
n/a
Expected Behavior
Per both Terraform and Google documentation, network should be "default" since it was not specified.
Actual Behavior
For HTTP(S) load balancers, network = null does indeed default to the "default" network.
For internal TCP/UDP load balancers, network is the same network used by the backend instance group
Steps to Reproduce
terraform apply
Important Factoids
The documented Terraform behavior is consistent with the documented Google API behavior. Unfortunately, both are slightly off.
This field is actually not required for internal TCP/UDP load balancers since the forwarding rule must always be on the same network / subnet as the backend instances.
This field would be required for envoy-based HTTP(S) LBs (both internal and external) so the proxy-only or regional-managed subnet can be determined. If set to null, it would make sense to try the "default" network.
References