Skip to content

Commit db4b00c

Browse files
fatcat2kurtisvg
authored andcommitted
Fix Cloud SQL env var names in app.yaml(GoogleCloudPlatform#2190)
* Changed env var to match between app.yaml and main.py in cloud_sql/mysql * Made the same fixes for the postgres example.
1 parent 861be02 commit db4b00c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cloud-sql/mysql/sqlalchemy/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runtime: python37
1717
# Remember - storing secrets in plaintext is potentially unsafe. Consider using
1818
# something like https://cloud.google.com/kms/ to help keep secrets secret.
1919
env_variables:
20-
CLOUD_SQL_INSTANCE_NAME: <MY-PROJECT>:<INSTANCE-REGION>:<MY-DATABASE>
20+
CLOUD_SQL_CONNECTION_NAME: <MY-PROJECT>:<INSTANCE-REGION>:<MY-DATABASE>
2121
DB_USER: my-db-user
2222
DB_PASS: my-db-pass
2323
DB_NAME: my_db

cloud-sql/postgres/sqlalchemy/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runtime: python37
1717
# Remember - storing secrets in plaintext is potentially unsafe. Consider using
1818
# something like https://cloud.google.com/kms/ to help keep secrets secret.
1919
env_variables:
20-
CLOUD_SQL_INSTANCE_NAME: <MY-PROJECT>:<INSTANCE-REGION>:<MY-DATABASE>
20+
CLOUD_SQL_CONNECTION_NAME: <MY-PROJECT>:<INSTANCE-REGION>:<MY-DATABASE>
2121
DB_USER: my-db-user
2222
DB_PASS: my-db-pass
2323
DB_NAME: my_db

0 commit comments

Comments
 (0)