-
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
Project creation with auto_create_network=false should not fail when constraints/compute.skipDefaultNetworkCreation is enforced #4990
Comments
Agreed - I can fix that. |
Ah, that's been fixed since 2.17.0 - please upgrade your provider and the issue should disappear. |
Hi @ndmckinley ,
Please also note that I faced a similar issue with the |
Can you link your debug logs? I don't have access to an organization I can set that constraint on, so I'll have to work from your logs. |
I find this part acceptable - if you have denied access to |
Hi @ndmckinley , |
Hi, @dlinares-linux, The log you've pasted includes only the top 20 and bottom 20 lines of the output - I need much more detail than that. If you're uncomfortable posting it publicly, you can email it to me at the email address on my profile, nmckinley@google.com. |
We just ran with 2.20 and faced the issue too required_providers { |
closing as this is a duplicate of #3582 |
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! |
Hi all,
Reporting this issue faced when I enforced an organization policy at organization level to skip the default network creation (constraints/compute.skipDefaultNetworkCreation).
Any project created with
auto_create_network = false
fails because it doesn't find the default network to try and delete it. As the result, the project is created on GCP, but is not imported to the tfstate.Here is my code that fails (I apply it in 2 steps, the org policy first)
That code will generate the following error:
I believe this is a bug and the project creation should not fail irrespective to whether an org policy is there or not to skip the default network creation.
The text was updated successfully, but these errors were encountered: