GCP doesn't offer a native hard spending cap — budget alerts notify but don't act. This guide walks through building an automated billing kill switch using Terraform, Cloud Functions (Gen 2), Pub/Sub, and Eventarc. When spend crosses a configurable threshold, a Python Cloud Function calls the Cloud Billing API to detach the
1 Comment
Sort: