Thursday, December 17, 2020

[google-cloud-sql-discuss] Why cannot we reuse CloudSQL instance name until a week after deletion?

It is mentioned in the docs that "You cannot reuse an instance name until a week after you have deleted the instance.", but I wonder why exactly there is such restriction for CloudSQL instances?

There is no such restriction on other resources (e.g. Compute engine, Filestore, Memorystore, Network services, etc.). It means I have to enumerate names in order to test building infrastructure with tools like Terraform, because otherwise an error is generated:

Error: Error, failed to create instance my-sql: googleapi: Error 409: The Cloud SQL instance already exists. When you delete an instance, you cannot reuse the name of the deleted instance until one week from the deletion date., instanceAlreadyExists

I'm just trying to understand the real reason(s) behind this restriction. Is it related to data retention just in case of something else?

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/e198db34-5e7d-404a-87fb-491463fb3570n%40googlegroups.com.

No comments:

Post a Comment