How to Stop Runaway Bills on Google Cloud Platform

Data Slayer
Data Slayer
15.2 هزار بار بازدید - 4 سال پیش - This tutorial will teach you
This tutorial will teach you how to create a spending limit in your Google Cloud Platform instance. I have not found a good way to limit Google Cloud billing and spending costs using the native features in the platform. By stringing together budgets, alerts, pubsub, and cloud function we can create a mechanism to automatically disable billing when our monthly costs exceed a predefined threshold.

Ever wonder what happens if your website goes viral? Or you forget to turn off that $40/hour GPU compute engine instance? Or create a script that loops over API calls without terminating? These are all very real scenarios that could result in considerable GCP costs.

Unfortunately Google only offers observability based alerting and does not offer a native kill switch mechanism. By deploying this solution you can rest assured that your Google Cloud Platform will shutdown when your budget threshold is met. This is something everyone should have set up on their account.

#googlecloudplatform

https://github.com/aioverlords/Google...
4 سال پیش در تاریخ 1399/10/18 منتشر شده است.
15,275 بـار بازدید شده
... بیشتر