Enable the Cloud Scheduler API
Create two static IP addresses
Create an instance with static IP address created earlier.
Deploy cloud function
Create App Engine Application
Run a cloud schedular job
Confirm the deletion of unused IP address
Clean Up Unused IP Addresses
In this lab, you use Cloud Functions and Cloud Scheduler to identify and clean up wasted cloud resources. On Google Cloud, static IP addresses are a free resource when they’re attached to a load balancer or virtual machine (VM) instance. When a static IP address is reserved, but not used, it accumulates an hourly charge. In apps that heavily depend on static IP addresses and large-scale dynamic provisioning, this waste can become significant over time.
What you'll do
Create a Compute Engine VM with a static external IP address and a separate unused static external IP address
Deploy a Cloud Function to identify unused addresses
Create a Cloud Scheduler job to schedule the function to run by using an HTTP trigger
Join Qwiklabs to read the rest of this lab...and more!
- Get temporary access to the Google Cloud Console.
- Over 200 labs from beginner to advanced levels.
- Bite-sized so you can learn at your own pace.