Skip to content

Instantly share code, notes, and snippets.

@ayoisio
ayoisio / billing-enablement.py
Created January 11, 2026 21:54
Automate Google Cloud Onramp Credit Linking
#!/usr/bin/env python3
"""
Billing Enablement Script
Automatically links a billing account to the current Google Cloud project.
Based on battle-tested patterns from Google Cloud codelabs.
This script handles common workshop scenarios:
- API propagation delays after enabling
- Billing account propagation delays (when credits are just claimed)