0

I have created a cloud run service. My event arc is not triggering the cross project to read the data. How to give the event filter for resource name in event arc with insert job/Job completed to trigger to BQ table.

gcloud eventarc triggers create ${SERVICE}-test1\
  --location=${REGION} --service-account ${SVC_ACCOUNT} \
  --destination-run-service ${SERVICE}  \
  --destination-run-region=${REGION} \
  --event-filters type=google.cloud.audit.log.v1.written \
  --event-filters methodName=google.cloud.bigquery.v2.JobService.InsertJob \
  --event-filters serviceName=bigquery.googleapis.com \
  --event-filters-path-pattern resourceName="/projects/destinationproject/locations/us-central1/jobs/*"

I have tried multiple options giving the resource name like: "projects/projectname/datasets/outputdataset/tables/outputtable"

0 Answers0