1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Cloud Functions 「HTTP のチュートリアル」でPermission denied on 'locations/asia-northeast1-a' (or it may not exist)のエラー

Posted at

Cloud Functions 「HTTP のチュートリアル」をやってた時に詰まったのでメモ

実行内容

デプロイをしようとした時に下記コマンドを実行した

gcloud functions deploy helloGET --runtime nodejs8 --trigger-http --allow-unauthenticated

エラー内容

ERROR: (gcloud.functions.deploy) ResponseError: status=[403], code=[Forbidden], message=[Permission denied on 'locations/asia-northeast1-a' (or it may not exist)]

対策

参考資料によるとregionの指定が間違っている(?)らしいので、regionを明記するようにした

gcloud functions deploy helloGET --runtime nodejs8 --trigger-http --allow-unauthenticated --region asia-northeast1

デプロイできた

参考資料

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?