Skip to content

Commit 8d335a0

Browse files
authored
Update Cloud SQL sample App Engine yaml and README (GoogleCloudPlatform#2768)
1 parent b382371 commit 8d335a0

5 files changed

Lines changed: 8 additions & 12 deletions

File tree

cloud-sql/mysql/mysql/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Navigate towards `http://127.0.0.1:8080` to verify your application is running c
122122
To run on GAE-Standard, create an App Engine project by following the setup for these
123123
[instructions](https://cloud.google.com/appengine/docs/standard/nodejs/quickstart#before-you-begin).
124124

125-
First, update `app.standard.yaml` with the correct values to pass the environment
125+
First, update [`app.standard.yaml`](app.standard.yaml) with the correct values to pass the environment
126126
variables into the runtime.
127127

128128
Next, the following command will deploy the application to your Google Cloud project:
@@ -138,7 +138,7 @@ gcloud app browse
138138

139139
## Deploy to Google App Engine Flexible
140140

141-
First, update `app.flexible.yaml` with the correct values to pass the environment
141+
First, update [`app.flexible.yaml`](app.flexible.yaml) with the correct values to pass the environment
142142
variables into the runtime.
143143

144144
Next, the following command will deploy the application to your Google Cloud project:

cloud-sql/mysql/mysql/app.standard.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
runtime: nodejs17
14+
runtime: nodejs16
1515

1616
# The following env variables may contain sensitive information that grants
1717
# anyone access to your database. Do not add this file to your source control.

cloud-sql/postgres/knex/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Navigate towards `http://127.0.0.1:8080` to verify your application is running c
123123
124124
## Deploy to Google App Engine Standard
125125
126-
1. To allow your app to connect to your Cloud SQL instance when the app is deployed, add the user, password, database, and instance unix socket variables from Cloud SQL to the related environment variables in the `app.standard.yaml` file. The deployed application will connect via unix sockets.
126+
1. To allow your app to connect to your Cloud SQL instance when the app is deployed, add the user, password, database, and instance unix socket variables from Cloud SQL to the related environment variables in the [`app.standard.yaml`](app.standard.yaml) file. The deployed application will connect via unix sockets.
127127
128128
```yaml
129129
env_variables:
@@ -147,7 +147,9 @@ Navigate towards `http://127.0.0.1:8080` to verify your application is running c
147147
148148
## Deploy to Google App Engine Flexible
149149
150-
1. Add the user, password, database, and instance unix socket variables from Cloud SQL to the related environment variables in the `app.flexible.yaml` file. The deployed application will connect via unix sockets.
150+
1. Add the user, password, database, and instance unix socket variables from Cloud SQL
151+
to the related environment variables in the [`app.flexible.yaml`](app.flexible.yaml) file.
152+
The deployed application will connect via unix sockets.
151153
152154
```yaml
153155
env_variables:

cloud-sql/postgres/knex/app.standard.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,3 @@ env_variables:
2020
DB_USER: MY_DB_USER
2121
DB_PASS: MY_DB_PASSWORD
2222
DB_NAME: MY_DATABASE
23-
24-
beta_settings:
25-
# The connection name of your instance, available by using
26-
# 'gcloud beta sql instances describe [INSTANCE_NAME]' or from
27-
# the Instance details page in the Google Cloud Platform Console.
28-
cloud_sql_instances: <MY-PROJECT>:<INSTANCE-REGION>:<INSTANCE-NAME>

cloud-sql/sqlserver/mssql/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Navigate towards `http://127.0.0.1:8080` to verify your application is running c
6464

6565
App Engine Flexible supports connecting to your SQL Server instance through TCP
6666

67-
First, update `app.yaml` with the correct values to pass the environment
67+
First, update [`app.yaml`](app.yaml) with the correct values to pass the environment
6868
variables and instance name into the runtime.
6969

7070
Then, make sure that the service account `service-{PROJECT_NUMBER}>@gae-api-prod.google.com.iam.gserviceaccount.com` has the IAM role `Cloud SQL Client`.

0 commit comments

Comments
 (0)