-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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_vpc_access_connector returns http 400 #8873
Comments
@MasterBroda I can't repro the issue. I noticed the region you selected. Can you check if northamerica-northeast1 is valid? resource "google_vpc_access_connector" "connector" {
provider = google-beta
project = "<service-project>"
name = "dummy-connector"
region = "northamerica-northeast1". <------ where did you get it?
subnet {
name = "<subnet-name>"
project_id = "<host-project>"
}
} |
@edwardmedia I also pass it in the equivalent gcloud command |
@MasterBroda I was looking at the region in below url. Here is what the provider doc explains regarding
The error is clear and that matches what you need to do. I am not able to repro your original error. Do you want to try a different region (ie us-central1) to see if that works for you? You may also try to run the example to see what happens? |
@MasterBroda is this still an issue? |
@edwardmedia sorry for the delay.
|
I'm not sure why I have to export the env variable since I'm already passing the region in the code. |
@MasterBroda no, you don't have to export the env variable.
For you to debug the issue, are you able to run the example? |
@edwardmedia the example doesn't fully work as the networks and subnets (including the /28 subnet for the vpc connector) are created beforehand by the folder admin.
I think I've found what might be causing the error. My module sets up the service accounts and their roles, healthcheck firewall rules, NAT router, external IP, etc along with the vpc-connector. |
@MasterBroda yes, when you mentioned resources got created in the 2nd run, I immediately thought it might be time issue. With the code you provided, I can't see particularly wrong. I have tested multiple times and could repro the error you encountered. |
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! |
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
Terraform v0.14.9
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
I'm trying to create a vpc connector in a shared VPC setting.
I can create it using the gcloud cli but terraform fails with a 400 response.
References
The text was updated successfully, but these errors were encountered: