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
You can install this application using the Open in Google Cloud Shell
button
below.
Clicking this link will take you right to the DeployStack app, running in your Cloud Shell environment. It will walk you through setting up your architecture.
To remove all billing components from the project
- Typing
deploystack uninstall
This is not an official Google product.