Triggers GCP Cloud SQL export backups to GCS.
Solution documentation:
https://cloud.google.com/solutions/scheduling-cloud-sql-database-exports-using-cloud-scheduler
main.py- the coderequirements.txt- the pip modules to bootstrapdeploy.sh- upload the code and deps
Upload the function to GCF in the current GCP project:
./deploy.sh
- a Cloud PubSub topic
- Cloud Scheduler jobs to trigger backups
- see
gcp_cloud_schedule_sql_exports.shin DevOps Bash tools repo
- see
- a service account with permissions to access Cloud SQL and the GCS bucket
- see
gcp_sql_exports_create_service_account.shin DevOps Bash tools repo
- see