Created
May 14, 2021 15:56
-
-
Save tarlen5/970d5560479c8dce0bbcd9cf5bcc4d02 to your computer and use it in GitHub Desktop.
pubsub notification using gsutil
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
BUCKET="gs://<your-bucket-name>" | |
TOPIC="projects/<your-project-id>/topics/<your-topic>" | |
PREFIX="your-prefix-path" | |
gsutil notification create \ | |
-f json \ | |
-t $TOPIC \ | |
-e OBJECT_FINALIZE \ | |
-p $PREFIX \ | |
$BUCKET | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment