ys memos

Blog

pulumi/gcpのprojectでfunctions API disabledの解消


pulumi

2021/12/18


Pulumi を触っていて,エラーと遭遇したので,その原因と解消方法を残す.


pulumi upの出力のDiagnostics部分の抜粋が以下である.

Diagnostics:
  pulumi:pulumi:Stack (<stack-name>):
    error: update failed

  gcp:cloudfunctions:Function (<function-name>):
    error: 1 error occurred:
        * googleapi: Error 403: Cloud Functions API has not been used in project <project-id> before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/cloudfunctions.googleapis.com/overview?project=<project-id> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
    Details:
    [
      ...
    ]
    , accessNotConfigured

上述したエラーは,Pulumi からデプロイする先の GCP Project で Cloud Functions が有効化されていないことが原因である.

解消方法としては,https://console.cloud.google.com/functions/list?project=<project-id>にブラウザからアクセスすることで有効化出来る.

次のpulumi upでは同様のエラーは発生しない.



関連タグを探す