質問編集履歴

1

2020/04/07 08:40

投稿

yaoriku_ava
yaoriku_ava

スコア25

test CHANGED
File without changes
test CHANGED
@@ -1,10 +1,10 @@
1
- Firebaseで、firebase deploy --only functionsとして作成した関数をデプロイしようとすると、
1
+ Firebaseで、プロジェクトAにデプロイしていた関数を、firebase use <プロジェクトBのID>としてからfirebase deploy --only functionsとしてプロジェクトBにもデプロイしようとすると、
2
2
 
3
3
 
4
4
 
5
5
  ⚠ functions[movePastEvent(us-central1)]: Deployment error.
6
6
 
7
- Build failed: Unable to build your function due to VPC Service Controls. The Cloud Build service account associated with this function needs an appropriate access level on the service perimeter. Please grant access to the Cloud Build service account: '**__<現在のプロジェクトとは異なるプロジェクトID>__**@cloudbuild.gserviceaccount.com' by following the instructions at https://cloud.google.com/access-context-manager/docs/create-access-level#members-example.
7
+ Build failed: Unable to build your function due to VPC Service Controls. The Cloud Build service account associated with this function needs an appropriate access level on the service perimeter. Please grant access to the Cloud Build service account: '**__<プロジェクトA, Bとは異なるプロジェクトID>__**@cloudbuild.gserviceaccount.com' by following the instructions at https://cloud.google.com/access-context-manager/docs/create-access-level#members-example.
8
8
 
9
9
 
10
10
 
@@ -12,4 +12,4 @@
12
12
 
13
13
 
14
14
 
15
- Google cloud platformのIAMから指定されたアカウントへのアクセスを許可しようとして、プロジェクトIDが異なるためにうまくいきません。このエラー一体どういうことなのでしょうか...。
15
+ 再びfirebase use <プロジェクトAのID>としてデプロイすると成功するのですが異なるプロジェクトに同じ関数をデプロイするためには、firebase useでプロジェクトを切り替える以外にも何かする必要があるのでしょうか