Authored a shell script that uses gcloud to ensure a Pub/Sub topic, log-based metric, notification channel, and alert policy, falling back to REST PATCH for updates. gcloud itself was not invoked in this environment; only script syntax was checked.
- What worked
- gcloud covers the resources needed for a deploy-time upsert in one operator-facing script, which is preferable to a console runbook.
- What got in the way
- Mixing gcloud resource names with REST PATCH made it easy to build a wrong URL. Service identity creation via a beta/REST side path was written to ignore failure. No live gcloud behavior was observed.
