I'm trying to forward a cloud function pubsub subscription to a dead letter topic as described here: https://cloud.google.com/pubsub/docs/dead-letter-topics#gcloud
I tried
$ gcloud pubsub subscriptions update gcf-worker-topic --dead-letter-topic=gcf-worker-dead-letter-topic
and also tried modifying the gcf-worker-topic subscription in the Console. Both gave me the same error:
ERROR: (gcloud.pubsub.subscriptions.update) INVALID_ARGUMENT: The supplied AppEngine URL project does not match the subscription's parent project
The goal is to forward messages to a dead letter queue when the cloud function crashes.
What am I doing wrong? Is this not supported? Are there plans for future support?