I want to deploy a Pubsub-triggered Cloud Function with message ordering: https://cloud.google.com/pubsub/docs/ordering
gcloud functions deploy
doesn't have an option to set an --enable-message-ordering
option:
https://cloud.google.com/sdk/gcloud/reference/functions/deploy
Should I pre-create the subscription before deploying the function? If so, does Cloud Functions have a well-known format for how it matches to a subscription name? It seems maybe the format is: gcf-{function-name}-{region}-{topic-name}
, but it also looks like the name format has changed over time, e.g. older deployed functions don't have the region name in the subscription. Is there a stable way to do this?