Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Access GAE Service through Service Account

Hi,

I have deployed a GAE Service in flex environment to a VPC.

The ingress setting for the GAE Service is internal-only.

VPC has one firewall rule

  • Access all ingress from a specific Service Account

Now, I am trying to access the endpoint of my GAE Service using Service Account Key Json. But I am getting Forbidden Access in response

index.js file (SA Client trying to access GAE Endpoint):

agnibeshgr_0-1681128508146.png

SA Firewall Rule in VPC :

agnibeshgr_1-1681128632026.png

 

0 3 169
3 REPLIES 3

sug
Bronze 3
Bronze 3

probably a path issue in your line
keyfile: "./keyfile.json" maybe

I checked and console logged the client object. It had all the correct credentials from the keyfile. 

sug
Bronze 3
Bronze 3