-
Notifications
You must be signed in to change notification settings - Fork 9.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
HTTP 409 while provisioning Google Cloud SQL instance #4557
Comments
OK, this ended up being a sneaky one. I guess they use some kind of background task to finalize Cloud SQL instance deletions. Here's what I got when I tried to use the instance name in the web UI: I don't have anything to suggest as far as a workaround, but it's clear that we can't just delete then immediately re-create the instance with the same name. |
@lwander any ideas here? If we know how long that "recently" check is we could workaround by dropping a sleep in the delete step - unless it's several minutes or something. |
The docs say that a name can be unavailable for up to two months. This is unfortunate, so I guess the second best thing to do is write a nice error message explaining that you need a new instance name? |
Haha I suppose we can't exactly Yeah a nicer error message for one would be good. We can also make the name field optional and populate it with |
Ha, that might be too discouraging 😴 Optional field name sounds perfect, I'll submit a PR. |
I just found this old issue because I'm getting the following error on Terraform 0.11.13:
It seems the nicer message is not getting displayed. Yes, I tried to create an instance the had just been deleted. |
I'm encountering same as @gtirloni, on matching Terraform version. |
Hilariously, I can't even terraform destroy now. For those who encounter similar. I was trying to recreate a db user. Running into rejections doing this, I thought I would just delete my database instance instead (developing). This failed as well through terraform so I decided to delete it through console. Now I'm unable to plan, apply, or destroy in this module.
|
@nickmarx12345678 I just arrived here having hit the same issue. |
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. |
I'm attempting to provision the following CLoud SQL instance (derived from the example in the docs):
Here's what I'm getting:
The Google Cloud project is empty, and I have no other resources defined. Currently running Terraform v0.6.8.
The text was updated successfully, but these errors were encountered: