-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
google_compute_instance: Subnetwork name expanded with wrong region #926
Comments
Hi Bastian, To solve your issue, you can provide the self_link of the network in the If the network is created in the same config you can do: If the network is NOT created in the same terraform config file, you can use the I will investigate what changes caused this change of behavior. |
We changed the behavior to infers region from the zone in schema instead of the provider-level region. |
…#926) Signed-off-by: Modular Magician <magic-modules@google.com>
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/waldiTM/3ef518510d7514b18f0e78405ee813ba
Expected Behavior
Subnetwork is used in the correct region. It worked in the past, not sure when.
Actual Behavior
According to the error, Terraform provides the full subnetwork URL in the wrong region, in the default region of the provider.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: