Skip to content

Commit 9e44a4c

Browse files
committed
Update composite_index.tf
1 parent c62c8aa commit 9e44a4c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

composite_index.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ locals {
77
region = "us-central1"
88
}
99

10+
resource "time_sleep" "wait_60_seconds" {
11+
depends_on = [local.data]
12+
create_duration = "60s"
13+
}
14+
15+
resource "google_project_service" "firestore" {
16+
project = local.data.projectId
17+
service = "firestore.googleapis.com"
18+
# Needed for CI tests for permissions to propagate, should not be needed for actual usage
19+
depends_on = [time_sleep.wait_60_seconds]
20+
}
21+
1022
resource "google_firestore_index" "default-db-index" {
1123
collection = "composite-index-test-collection"
1224

0 commit comments

Comments
 (0)