Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.11 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.11 KB

Pubsub-setup script

Nylas maintains this Go script that automatically provisions the correct GCP resources for you so you can enable Google PubSub Message Sync. See the Nylas documentation on PubSub for more information.

Running the script

  1. Switch to the GCP project you want to add PubSub Message Sync to.
gcloud config set project $YOUR_PROJECT_NAME_HERE
  1. Authenticate locally with GCP.
gcloud auth application-default login
  1. Fetch the dependencies.
go get .
  1. Run the program.
go run main.go --projectId $YOUR_PROJECT_NAME_HERE

Flags

Flag name Description Example
projectId The GCP Project to run this script against test-project-id
env The Nylas environment to run against. Valid values are: us, eu, staging us