Created
April 18, 2021 20:34
-
-
Save grant/7f5a076e65faffa658e48b8cb5159307 to your computer and use it in GitHub Desktop.
gcloud eventarc triggers create CAL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}[email protected] \ | |
--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