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
加入 Qwiklabs 即可阅读本实验的剩余内容…以及更多精彩内容！
- 获取对“Google Cloud Console”的临时访问权限。
- 200 多项实验，从入门级实验到高级实验，应有尽有。
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