Hello, after reproducing your scenario, we are faced with the same 403 error when triggering the Cloud Function from App Engine Standard. We tried to create a VPC Access Connector [1] to achieve it but it is not possible because requests must use the external address of your serverless service. [2] It is possible to connect App Engine or Cloud Functions to other resources but not between them. [3]
That is why we have created a Feature Request [4] to implement this. You will be able to see all the updates made by the specialist there. You can add it to favorites by clicking the star icon. This way, you will receive mail updates. [1] https://cloud.google.com/vpc/docs/configure-serverless-vpc-access [2] https://cloud.google.com/vpc/docs/serverless-vpc-access#:~:text=serverless%20vpc%20access%20only%20allows%20requests%20to%20be%20initiated%20by%20the%20serverless%20environment.%20 [3] https://cloud.google.com/vpc/docs/private-access-options?&_ga=2.117117062.-1673936480.1621885978#supported_services [4] https://issuetracker.google.com/191731495 On Wednesday, June 16, 2021 at 4:31:05 AM UTC+2 [email protected] wrote: > This does not seem to be working for connection from Java standard App > Engine to Cloud Function. > I created VPC Access Connector. Enabled it in my Java App Standard Engine > application. Deployed function with vpc access connector. > Java App still gets error 403 when connecting to function. > > I know that vpc connector "works" because java application does not > connect to Cloud SQL without it. > Is this supposed to work for App Engine Standard to Cloud Function > connection? > Serverless VPC Access connector does not have anything fancy in it. It is > simply configured for range 10.16.0.0/28 and region us-central1 > Firewall rules should not be needed since everything connects to default > us-central1 VPC Network. > > What else can I try? What else can I look at? > > All help is greatly appreciated. > > > On Tuesday, June 15, 2021 at 9:04:44 AM UTC-7 Anatoli Trifonov wrote: > >> Thank you. I will have a look. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/80fc784a-2740-4a11-bc61-8815be9711fbn%40googlegroups.com.
