Created
December 20, 2018 01:53
-
-
Save fmachado091/0ac235c61ad6cb8765becaae07293643 to your computer and use it in GitHub Desktop.
This file contains 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
# list pub/sub topics (in case you don't remeber the your topic's name) | |
$ gcloud pubsub topics list | |
# setting up topic (just for readability purposes) | |
$ PUBSUB_TOPIC=projects/hello-spring-cloud-gcp/topics/hello-pubsub | |
# publish to topic | |
$ gcloud pubsub topics publish ${PUBSUB_TOPIC}\ | |
--message "Hello, Pub/Sub" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment