gcloud pubsub subscriptions create MY_SUBSCRIPTION_NAME --topic=TOPIC_NAME
I receive the following error:
ERROR: Failed to create subscription [projects/MY_PROJECT_NAME/subscriptions/MY_SUBSCRIPTION_NAME]: User not authorized to perform this action.
ERROR: (gcloud.pubsub.subscriptions.create) Failed to create the following: [MY_SUBSCRIPTION_NAME].
However, when I tried to delete the topic through the command line
gcloud pubsub topics delete TOPIC_NAME
It worked fine. So my access level should be enough and correct.
I guess it might be a bug?
I also upgraded SDK to the latest:
Google Cloud SDK 305.0.0
alpha 2020.08.07
bq 2.0.58
core 2020.08.07
gsutil 4.52
Anyone can help? thanks