LoginSignup
0
0

firebase functionsをfirebase deployする際にやるべきこと

Posted at

以下の手順で、必要な権限をCloud Functionsのサービスアカウントに付与することができます。

  1. Google Cloud Consoleにアクセス
    Google Cloud Consoleにアクセスし、対象のFirebaseプロジェクトを選択します。

  2. IAM & 管理画面に移動
    ナビゲーションメニューから「IAM & 管理」を選択し、「IAM」をクリックします。

  3. Cloud Functionsのサービスアカウントを見つける
    プロジェクトのIAMリストで、Cloud Functionsに関連付けられているサービスアカウントを探します。このアカウントは通常、@appspot.gserviceaccount.comのメールアドレスで終わるものです。

  4. 必要なロールを追加
    見つけたサービスアカウントの行にある「ペン」アイコン(編集ボタン)をクリックし、「ロールを追加」を選択します。検索ボックスに「Artifact Registry 読み取り」と入力し、結果からそれを選択して追加します。変更を保存します。

  5. デプロイの再試行
    必要な権限をサービスアカウントに付与した後、Firebase Cloud Functionsのデプロイを再度試行してください。

0
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
0
0