eventarc library
Eventarc triggers — fan out Google Cloud events (Storage object writes, Pub/Sub publishes, Audit Log entries, etc.) to Cloud Run services, Cloud Run functions, Workflows, GKE pods, or arbitrary HTTP endpoints.
Single-resource barrel today (GoogleEventarcTrigger); future waves may
add eventarc_channel (Advanced edition) and similar siblings.
Classes
- EventarcTriggerCloudRunService
-
destination.cloud_run_serviceblock. - EventarcTriggerDestination
-
destinationblock. Selects the workload that receives matched CloudEvents. Exactly ONE of cloudRunService / cloudFunction / workflow / httpEndpoint / gke must be set -- they are mutually exclusive at the GCP API level and the provider validates this before plan/apply. - EventarcTriggerGkeService
-
destination.gkeblock. GKE service in the same project as the trigger. - EventarcTriggerHttpEndpoint
-
destination.http_endpointblock. Only HTTP and HTTPS protocols are supported. The host can be either a static IP reachable from the VPC declared in EventarcTriggerDestination.networkConfig, or an internal DNS hostname resolvable via Cloud DNS. - EventarcTriggerMatchingCriteria
-
One
matching_criteriaentry. The full list of entries is AND-ed -- only events matching every filter are delivered. The schema models this as asetof blocks; the wrapper still accepts aList<EventarcTriggerMatchingCriteria>-- duplicates are deduped by the Terraform engine on apply. - EventarcTriggerNetworkConfig
-
destination.network_configblock. Configures how Eventarc resolves and connects to the destination. ONLY valid when EventarcTriggerDestination.httpEndpoint is set. - EventarcTriggerPubsubTransport
-
transport.pubsubblock. - EventarcTriggerRetryPolicy
-
retry_policyblock. Configures delivery retry behavior for the trigger. Per the schema, this block is ONLY valid whendestinationtargets a Cloud Run service (EventarcTriggerDestination.cloudRunService); setting it for any other destination is rejected by the provider. - EventarcTriggerTransport
-
transportblock. Optional reference to the GCP product Eventarc uses as the delivery intermediary. Today the only supported transport is Pub/Sub via pubsub; future transports may be added by the API without breaking this block (additional sub-blocks would map to new nullable fields). - GoogleEventarcTrigger
-
Factory wrapper for
google_eventarc_trigger(providerhashicorp/google ~> 7.0).