Terraform is increasingly the preferred tool for building, changing, and versioning infrastructure in Google Cloud and across clouds. In an earlier post, I showed how to create Eventarc triggers using Google Cloud Console or via the command line with gcloud. In this post, I show how to create the same triggers with the google_eventarc_trigger Terraform resource.
See eventarc-samples/terraform on GitHub for the prerequisites and main.tf for full Terraform configuration.
Define a Cloud Run service as an event sink Before you can create a trigger, you need to create a Cloud Run service as an event sink for the trigger. You can use Terraform’s google_cloud_run_service resource to define a Cloud Run service:
See also
- From Prototype to Production: Hardening an MCP, A2A & ADK Multi-Agent System on Google Cloud
- Gemini Decisions API - Fast, Calibrated Multimodal Decisions
- 6 Years of Tech Debt, 1 Prompt: Modernizing a Legacy App with Gemini 4
- Codelab - Gemini for Developers
- Gemini Interactions API - One interface for models and agents