menu
arrow_back

Clean up unused IP addresses

Clean up unused IP addresses

1 hour 7 Credits

GSP646

Google Cloud Self-Paced Labs

Overview

In this lab, you will use Cloud Functions and Cloud Scheduler to identify and clean up wasted cloud resources. On Google Cloud Platform (GCP), 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.
Join to Start This Lab
Score

—/100

Enable the Cloud Scheduler API

Run Step

/ 10

Create two static IP addresses

Run Step

/ 20

Create an instance with static IP address created earlier.

Run Step

/ 20

Deploy cloud function

Run Step

/ 20

Create App Engine Application

Run Step

/ 10

Run a cloud schedular job

Run Step

/ 10

Confirm the deletion of unused IP address

Run Step

/ 10