App in a Box - Cost Sentry
This is a simple solution that uses a Cloud Function to enforce Billing Budget constraints.
Namely when you go over budget, any Compute Engine instance with a label of costsentry
will be stopped
by this system. It uses Pub/Sub to be the bridge between the Budget
and Cloud Functions
Install
You can install this application using the Open in Google Cloud Shell
button
below.
Once this opens up, you can install by:
- Creating a Google Cloud Project
- Then typing
./install
Cleanup
To remove all billing components from the project
- Typing
./uninstall
This is not an official Google product.