Search code examples
google-app-enginegoogle-cloud-platformgoogle-cloud-scheduler

How to set up private communication between Google Cloud Scheduler and App Engine?


I have deployed a Google App Engine App.

The App is triggered once a day by App Engine cron job.

The App Engine Firewall Rules is set to 'Deny' to keep it private. The Firewall doesn't block App Engine cron job.

Now I want to replace App Engine cron job with Google Cloud Scheduler (Cloud Scheduler is easier to use since it has a pause function).

But the App Engine Firewall blocks Cloud Scheduler. So in order to make it work, I need to set Firewall to 'Allow' to make it publicly accessible.

Is there a way to set up a private communication between them to make my app only accessible by Cloud Scheduler?


Solution

  • I accidentally found the solution.

    Cloud Scheduler - Create a Job - Target chooses App Engine HTTP.

    Same as corn job, App Engine firewall doesn't block this.