ERROR: (gcloud.functions.deploy) argument --trigger-topic: Invalid value

789 views
Skip to first unread message

Egg

unread,
Dec 2, 2021, 2:17:18 PM12/2/21
to pubsub-discuss
Hello everyone I'm currently follow this guide 


This command is fine : gcloud functions deploy helloHttp --runtime [YOUR_RUNTIME] --trigger-http

But when i try the 2nd command

gcloud functions deploy hellopubsub --trigger-topic projects/pub-sub-331602/topics/facebook-message --runtime nodejs12

I got error message

ERROR: (gcloud.functions.deploy) argument --trigger-topic: Invalid value 'projects/pub-sub-331602/topics/facebook-message': Topic must contain only Latin letters (lower- or upper-case), digits and the characters - + . _ ~ %. It must start with a letter and be from 3 to 255 characters long.
i already follow this pattern
https://cloud.google.com/sdk/gcloud/reference/beta/functions/deploy


Kir Titievsky

unread,
Dec 7, 2021, 4:17:18 PM12/7/21
to pubsub-discuss
The argument value would be "facebook-message" not the full topic identifier.
Reply all
Reply to author
Forward
0 new messages