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: docs/quickstarts/03-quickstart-cloudrun.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,23 @@ Service [hello] revision [hello-00001-yen] has been deployed and is serving 100
93
93
Service URL: https://hello-gpua4upw6q-uc.a.run.app
94
94
```
95
95
96
+
## If connecting to Cloud SQL
97
+
98
+
If your Cloud Run service will connect to Cloud SQL via the [Cloud SQL Auth Proxy], then it is important
99
+
to select the `gen2` Cloud Run execution environment.
100
+
101
+
**Note:** To do this, you may need to install the `beta` version of the gcloud CLI, but if this is required, you will be prompted. Enter `y` to accept the extra installation.
102
+
103
+
```shell
104
+
gcloud beta run deploy NAME \
105
+
--source=PATH \ # can use $PWD or . for current dir
106
+
--project=PROJECT \ # the Google Cloud project ID
107
+
--region=REGION \ # ex: us-central1
108
+
--platform=managed \ # for Cloud Run
109
+
--allow-unauthenticated # for public access
110
+
--execution-environment=gen2 # helpful if using CloudSQL
111
+
```
112
+
96
113
<br>
97
114
98
115
**Congratulations!** You have successfully built and deployed your function
0 commit comments