google-app-enginegoogle-cloud-platformpermissionspermission-denied

gcloud app deploy eror The "vpcaccess.connectors.use" permission is required


I have GO application and tried to deploy it to the google app engine with google command line sdk from a local machine with a custom service account.

I create a custom service account with roles:

And authorized locally with this account:

gcloud auth activate-service-account account_name@project-name.iam.gserviceaccount.com --key-file=key.json

Also, I configure the service account in my app.yaml:

service_account: account_name@project-name.iam.gserviceaccount.com

But when i try to deploy

gcloud app deploy -v 1   

I get the error:

Beginning deployment of service [default]...
╔════════════════════════════════════════════════════════════╗
╠═ Uploading 0 files to Google Cloud Storage                ═╣
╚════════════════════════════════════════════════════════════╝
File upload done.
ERROR: (gcloud.app.deploy) PERMISSION_DENIED: Operation is not allowed. The "vpcaccess.connectors.use" permission is required.

I can not understand why vpcaccess.connectors.use permission still required even I have Serverless VPC Access User role? I found the role on this google docs page

Maybe someone has met with a similar difficulty? Please help me)

UPD even i give Owner role i steel have the error


Solution

  • Ok i fix this error by removing vpc_access_connector: configuration from app.yaml

    UPD But if you need to configure vpc_access_connector you need to add Serverless VPC Access User and Compute Viewer IAM roles and all must work fine.