Use this to get the right email so you can give it pubsub.publisher permission.

gcs_get_service_email(project)

Arguments

project

The project name containing the bucket

Details

This service email can be different from the email in the service JSON. Give this pubsub.publisher permission in the Google cloud console.

See also

Other pubsub functions: gcs_create_pubsub(), gcs_delete_pubsub(), gcs_list_pubsub()