OSVauco/scripts/cost-guard.sh

12 lines
491 B
Bash
Executable File

#!/bin/bash
# cost-guard.sh — Sjekk GCP-kostnader for propane-will-491900-m5
PROJECT="propane-will-491900-m5"
echo "=== Cost Guard ==="
gcloud billing budgets list \
--billing-account=$(gcloud billing accounts list --format='value(name)' | head -1) \
--format='table(displayName,amount.specifiedAmount.units,thresholdRules)'
echo ""
echo "=== Cloud Run metrics ==="
gcloud run services list --project=$PROJECT --region=us-central1 \
--format='table(SERVICE,REGION,LAST_DEPLOYED_AT)'