October 2019
Intermediate to advanced
520 pages
13h 5m
English
After defining the necessary parameters, you can define the following triggers, depending on how you want your function to be initiated.
To define an HTTP trigger, use the following command:
--trigger-http
An endpoint will be assigned to the function.
To trigger a function on changes to a Cloud Storage bucket, use the following command:
--trigger-bucket=$TRIGGER_BUCKET
Here, we have the following option:
To trigger a function on messages that are arriving in a Pub/Sub queue, use the following command:
--trigger-topic=$TRIGGER_TOPIC
Here, we have the following option:
Read now
Unlock full access