Architecture diagram for Article

Using Cloud Scheduler and Cloud Functions to Deploy a Periodic Compute Engine VM Worker.

Martin Ombura Jr.
Jun 6 · 5 min read

Architecture

1. Create a Service Account

Figure 1: Creating the Service Account

1.2 Apply Service Account Permission.

Figure 2: Applying Roles to Service Account

2. Creating the Cloud Function

Figure 3: Creating Cloud Function (Name, Description and Trigger)
Figure 4: Creating Cloud Function (Regions and Environment Variables)
Figure 5: Cloud Scheduler after you created the schedule

Creating the Cloud Scheduler

Figure 6: Creating the Cloud Schedule

Running the Schedule

Figure 7: Cloud Scheduler immediately you created the schedule
Figure 8: A successful call to Cloud Functions
Figure 9: There are no compute engine VMs initially
Figure 10: After a few moments, the worker-instance-01 is creating
Figure 11: Cloud Function periodic utilization
Figure 12: The work.txt file and all the logs from STARTING to FINISHING as well as time

Conclusion

Code

Additional Links

Google Cloud Platform - Community

A collection of technical articles published or curated by Google Cloud Platform Developer Advocates. The views expressed are those of the authors and don't necessarily reflect those of Google.

Martin Ombura Jr.

Written by

Go | | Ggl Cld | Dstrbtd Cmptng | Andrd | Lnx

Google Cloud Platform - Community

A collection of technical articles published or curated by Google Cloud Platform Developer Advocates. The views expressed are those of the authors and don't necessarily reflect those of Google.