8000 Update app.yaml to use connection name (#679) · andrewhubbs/python-docs-samples@1c719de · GitHub
  • [go: up one dir, main page]

    Skip to content

    Commit 1c719de

    Browse files
    piaxcJon Wayne Parrott
    authored andcommitted
    Update app.yaml to use connection name (Goog F22F leCloudPlatform#679)
    We've moved away from concatenating project:region:instance and towards using the instance connection name, which is now available not only from the console but also from gcloud. I'm in the process of adding the text to go along with this change, but already the proxy invocation uses this so we're no worse off if we publish this change. Thanks!
    1 parent 9867964 commit 1c719de

    File tree

    1 file changed

    +2
    -2
    lines changed

    1 file changed

    +2
    -2
    lines changed

    appengine/flexible/cloudsql/app.yaml

    Lines changed: 2 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -10,12 +10,12 @@ env_variables:
    1010
    # Replace user, password, database, project, and instance with the values obtained
    1111
    # when configuring your Cloud SQL instance.
    1212
    SQLALCHEMY_DATABASE_URI: >-
    13-
    mysql+pymysql://USER:PASSWORD@/DATABASE?unix_socket=/cloudsql/PROJECT:REGION:INSTANCE
    13+
    mysql+pymysql://USER:PASSWORD@/DATABASE?unix_socket=/cloudsql/INSTANCE_CONNECTION_NAME
    1414
    #[END env]
    1515

    1616
    #[START cloudsql_settings]
    1717
    # Replace project and instance with the values obtained when configuring your
    1818
    # Cloud SQL instance.
    1919
    beta_settings:
    20-
    cloud_sql_instances: PROJECT:REGION:INSTANCE
    20+
    cloud_sql_instances: INSTANCE_CONNECTION_NAME
    2121
    #[END cloudsql_settings]

    0 commit comments

    Comments
     (0)
    0