File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -58,5 +58,8 @@ resource "google_firebaserules_ruleset" "basic" {
58
58
}
59
59
60
60
project = var. PROJECT_ID
61
- depends_on = [google_firebase_project . default ]
61
+ depends_on = [
62
+ google_firebase_project . default ,
63
+ google_project_iam_member . service_account_firebase_rules
64
+ ]
62
65
}
Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ resource "google_project_iam_member" "service_account_firebase_admin" {
8
8
member = " serviceAccount:${ google_service_account . firebase . email } "
9
9
}
10
10
11
+ resource "google_project_iam_member" "service_account_firebase_rules" {
12
+ project = var. PROJECT_ID
13
+ role = " roles/firebaserules.admin"
14
+ member = " serviceAccount:${ google_service_account . firebase . email } "
15
+ }
16
+
11
17
resource "google_project_iam_member" "service_account_storage_admin" {
12
18
project = var. PROJECT_ID
13
19
role = " roles/storage.admin"
You can’t perform that action at this time.
0 commit comments