diff --git a/third_party/terraform/utils/error_retry_predicates.go b/third_party/terraform/utils/error_retry_predicates.go index d02614392a9d..c5d02726fc45 100644 --- a/third_party/terraform/utils/error_retry_predicates.go +++ b/third_party/terraform/utils/error_retry_predicates.go @@ -33,6 +33,10 @@ func pubsubTopicProjectNotReady(err error) (bool, string) { func isSqlOperationInProgressError(err error) (bool, string) { if gerr, ok := err.(*googleapi.Error); ok && gerr.Code == 409 { + if strings.Contains(gerr.Body, "you cannot reuse the name of the deleted instance until one week from the deletion date.") { + return false, "" + } + return true, "Waiting for other concurrent Cloud SQL operations to finish" } return false, ""