Skip to content

Instantly share code, notes, and snippets.

@grant
Created April 18, 2021 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grant/7f5a076e65faffa658e48b8cb5159307 to your computer and use it in GitHub Desktop.
Save grant/7f5a076e65faffa658e48b8cb5159307 to your computer and use it in GitHub Desktop.
gcloud eventarc triggers create CAL
export TRIGGER_NAME=events-cal-trigger
export RUN_SERVICE=helloworld-events
export PROJECT_NUMBER="$(gcloud projects describe $(gcloud config get-value project) --format='value(projectNumber)')"
gcloud eventarc triggers create $TRIGGER_NAME \
--destination-run-service=$RUN_SERVICE \
--service-account=${PROJECT_NUMBER}-compute@developer.gserviceaccount.com \
--event-filters="type=google.cloud.audit.log.v1.written" \
--event-filters="serviceName=cloudfunctions.googleapis.com" \
--event-filters="methodName=google.cloud.functions.v1.CloudFunctionsService.CreateFunction"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment