@@ -84,24 +84,24 @@ for more details on connecting a Cloud Run service to Cloud SQL.
84
84
1 . Build the container image:
85
85
86
86
``` sh
87
- gcloud builds submit --tag gcr.io/[YOUR_PROJECT_ID]/run-sql
87
+ gcloud builds submit --tag gcr.io/[YOUR_PROJECT_ID]/run-mysql
88
88
```
89
89
90
90
2 . Deploy the service to Cloud Run:
91
91
92
92
``` sh
93
- gcloud beta run deploy run-sql --image gcr.io/[YOUR_PROJECT_ID]/run-sql
93
+ gcloud run deploy run-mysql --image gcr.io/[YOUR_PROJECT_ID]/run-mysql
94
94
```
95
95
96
96
Take note of the URL output at the end of the deployment process.
97
97
98
98
3 . Configure the service for use with Cloud Run
99
99
100
100
``` sh
101
- gcloud beta run services update run-mysql \
101
+ gcloud run services update run-mysql \
102
102
--add-cloudsql-instances [INSTANCE_CONNECTION_NAME] \
103
103
--set-env-vars CLOUD_SQL_CONNECTION_NAME=[INSTANCE_CONNECTION_NAME],\
104
- DB_USER=[MY_DB_USER],DB_PASS=[MY_DB_PASS],DB_NAME=[MY_DB]
104
+ DB_USER=[MY_DB_USER],DB_PASS=[MY_DB_PASS],DB_NAME=[MY_DB]
105
105
```
106
106
Replace environment variables with the correct values for your Cloud SQL
107
107
instance configuration.
@@ -111,4 +111,4 @@ This step can be done as part of deployment but is separated for clarity.
111
111
4 . Navigate your browser to the URL noted in step 2.
112
112
113
113
For more details about using Cloud Run see http://cloud.run .
114
- Review other [ Python on Cloud Run samples] ( ../../../run/ ) .
114
+ Review other [ Python on Cloud Run samples] ( ../../../run/ ) .
0 commit comments