我配置了一个无服务器 vpc,并使用以下 app.yaml 启动该应用程序。但无法与私有 sql 实例通信。
runtime: python37
service: xxxx
entrypoint: gunicorn main:app --bind 0.0.0.0:$PORT --worker-class sanic.worker.GunicornWorker
vpc_access_connector:
name: "projects/xxxx/locations/us-central1/connectors/serverless-vpc-name"
inbound_services:
- warmup
env_variables:
PROJ_NAME: xxxxx
DB_TYPE: mysql_socket
SQL_USERNAME: root
SQL_PASSWORD: xxxxx
SQL_DATABASE_NAME: xxxxx
SQL_CONNECTION_NAME: xxxx:us-central1:cloudsql-instance```