Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I access to internal VPC http endpoint from Google Cloud Scheduler?

I would like to know if it is possible to execute a job to make a post to an internal VPC http endpoint.

like image 749
lascarayf Avatar asked Jan 28 '19 19:01

lascarayf


People also ask

How can you access GCP API without passing traffic through the public Internet?

Use restricted.googleapis.com to access Google APIs and services by using a set of IP addresses only routable from within Google Cloud. Choose restricted.googleapis.com when you only need access to Google APIs and services that are supported by VPC Service Controls.

What is Gcp Private access?

Private Google Access enabled allows VM instances which only have internal IP addresses (no external IP addresses) to reach the external IP addresses of Google APIs and services.

What is PGA in GCP?

PGA grants a privilege to the VM instances that only have internal IP addresses (no external IP addresses) can use Private Google Access and this way they can reach the external IP addresses of Google APIs and services.


1 Answers

At this time we cannot make a post directly to an internal VPC endpoint. However, depending on your VPC set up, you could set up a gateway (not recommended) or set up a VPC connector. For a VPC connector you'll need an additional service such as a Cloud Function to create the connection in which you would forward the scheduler request. Learn more about connecting to a VPC network.

like image 72
Averi Kitsch Avatar answered Oct 02 '22 02:10

Averi Kitsch