Skip to content

Event Source for Google Cloud Storage

This event source receives change notifications emerging from a Google Cloud Storage bucket by subscribing to a Google Cloud Pub/Sub topic.


  • Event Source for Google Cloud Pub/Sub
  • Storage Bucket
  • Notification Configuration

Event Source for Google Cloud Pub/Sub

Change notifications from Cloud Storage buckets can not be consumed directly, but are instead sent to a Google Cloud Pub/Sub topic. Follow the instructions at Event Source for Google Cloud Pub/Sub for setting up a Pub/Sub topic and running an instance of the Pub/Sub event source.


As an alternative to a manual creation, the Pub/Sub topic will be created automatically while enabling the Notification Configuration if it doesn't already exist.

Storage Bucket

You can create a Cloud Storage bucket by following the instructions from the Cloud Storage How-To Guides.

Notification Configuration

Change notifications need to be enabled in the selected bucket by applying a notification configuration. Follow the instructions at Using Pub/Sub notifications for Cloud Storage to add a new notification configuration using the gsutil command-line tool.

Below is an example of command which applies a notification configuration to a bucket called eventsource-dev, with a Pub/Sub topic called triggermesh-storage-source set as event destination.

$ gsutil notification create -t triggermesh-storage-source -f json gs://eventsource-dev
Created Cloud Pub/Sub topic projects/my-project/topics/triggermesh-storage-source
Created notification config projects/_/buckets/eventsource-dev/notificationConfigs/1
$ gsutil notification list gs://eventsource-dev
        Cloud Pub/Sub topic: projects/my-project/topics/triggermesh-storage-source


It is currently not possible to manage Pub/Sub notifications via the Cloud Console.