-
Enable API/Service Details
sqladmin API (prod). This can be done via URL https://console.developers.google.com/apis/api/sqladmin.googleapis.com/overview?project=123456789012 where 123456789012 is the Project number. -
Create a PUB/SUB Topic
-
Create Cloud Function
Paste the content of gcp_sql_scheduler.py into the
main.pyfile in the console and change the Entry point tomainPaste the content of requirements.txt into
requirements.txtfile in the console.Then click the Deploy button.
-
Create Cloud Scheduler jobs
Create two jobs. One for start and Project number another one for stop SQL instances.
The only difference between these two should be the value on Key 2 For starting the SQL instances,
actionshould bestartandstopfor stopping.The Key 1 attribute -> Specify here what should be the SQL instance label. All SQL instances with that label will be scheduled.
gcp_sql_scheduler
Directory actions
More options
Directory actions
More options
gcp_sql_scheduler
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||