2
1

More than 3 years have passed since last update.

`gcloud functions deploy`で、"Failed to find attribute [project]."とエラーになった

Posted at
$ gcloud functions deploy hello_http --runtime python38 --trigger-http --allow-unauthenticated

ERROR: (gcloud.functions.deploy) Error parsing [name].
The [function] resource is not properly specified.
Failed to find attribute [project]. The attribute can be set in the following ways: 
- provide the argument [--project] on the command line
- set the property [core/project]

上記のようなエラーが出た。

どうもプロジェクトを指定していないのが原因のようだ。

gcloud auth loginで認証をしたあと、

gcloud config set project <PROJECT_ID>

で作成済みのプロジェクトのプロジェクトIDを指定してあげればOK。

2
1
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
2
1