Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud SQL Database Delete Protection

I would like the ability to protect against the deletion of a cloud SQL instance. This seems like a good step to take to avoid actions from an angry employee or a regretful click.

like image 400
Daniel Rasmuson Avatar asked Jul 17 '18 22:07

Daniel Rasmuson


1 Answers

I couldn't find anything like literally protecting the instance vs deletion, but, you could use the predefined roles in your instance to try to protect your instances from, as you said, angry employees.

For example:

  • Keeping the role owner to yourself (assuming you are, indeed, the owner of this project).
  • Depending on the needs of the employees, you can probably assign them the role cloudsql.editor or similar. If this is too much, you can create your own custom roles to narrow down what you need.

As for a regretful click, there is no much you can do. You could regularly create an export and save it on one of your buckets, just in case you need to create again your instance after a 'regretful' click.

like image 120
Mangu Avatar answered Sep 27 '22 17:09

Mangu