Sneha Mule
Sneha Mule

Reputation: 715

How to add pubsub notification to GCP storage bucket using gsutil

I want to add a pubsub notification for GCp storage buckets. So whenever file drop in GCP storage bucket then pubsub notification will send

Upvotes: 0

Views: 682

Answers (1)

Sneha Mule
Sneha Mule

Reputation: 715

Can use Gsutil command to create pubsub notification

Select project

gcloud config set project <Project-Name>

Create Notification

gsutil notification create -t <Pubsub topic > -f json gs://<Bucket-name>

More information:

Upvotes: 1

Related Questions