You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gcp_cloud_function_sql_export/README.md
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,19 @@ Upload the function to GCF in the current GCP project - this script will call `g
17
17
./deploy.sh
18
18
```
19
19
20
-
or use the [Serverless](https://www.serverless.com/) framework for which a `serverless.yml` config is provided:
20
+
### Solution Dependencies
21
+
22
+
- a [Cloud PubSub](https://cloud.google.com/pubsub) topic
23
+
-[Cloud Scheduler](https://cloud.google.com/scheduler) jobs to trigger backups
24
+
- see `gcp_cloud_schedule_sql_exports.sh` in [DevOps Bash tools](https://github.com/HariSekhon/DevOps-Bash-tools/) repo
25
+
- a service account with permissions to access [Cloud SQL](https://cloud.google.com/sql)
26
+
- see `gcp_sql_create_readonly_service_account.sh` in [DevOps Bash tools](https://github.com/HariSekhon/DevOps-Bash-tools/) repo
27
+
- each [Cloud SQL](https://cloud.google.com/sql) instance to be backed up requires objectCreator permissions to the [GCS](https://cloud.google.com/storage) bucket
28
+
- see `gcp_sql_grant_instances_gcs_object_creator.sh` in [DevOps Bash tools](https://github.com/HariSekhon/DevOps-Bash-tools/) repo
29
+
30
+
### Serverless Framework
31
+
32
+
You can also use the [Serverless](https://www.serverless.com/) framework for which a `serverless.yml` config is provided:
21
33
22
34
```
23
35
serverless deploy
@@ -38,13 +50,3 @@ You can also build a serverless artifact to `.serverless/` without deploying it
38
50
```
39
51
serverless package
40
52
```
41
-
42
-
### Solution Dependencies
43
-
44
-
- a [Cloud PubSub](https://cloud.google.com/pubsub) topic
45
-
-[Cloud Scheduler](https://cloud.google.com/scheduler) jobs to trigger backups
46
-
- see `gcp_cloud_schedule_sql_exports.sh` in [DevOps Bash tools](https://github.com/HariSekhon/DevOps-Bash-tools/) repo
47
-
- a service account with permissions to access [Cloud SQL](https://cloud.google.com/sql)
48
-
- see `gcp_sql_create_readonly_service_account.sh` in [DevOps Bash tools](https://github.com/HariSekhon/DevOps-Bash-tools/) repo
49
-
- each [Cloud SQL](https://cloud.google.com/sql) instance to be backed up requires objectCreator permissions to the [GCS](https://cloud.google.com/storage) bucket
50
-
- see `gcp_sql_grant_instances_gcs_object_creator.sh` in [DevOps Bash tools](https://github.com/HariSekhon/DevOps-Bash-tools/) repo
0 commit comments