We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edeb4ad commit 9d1b9deCopy full SHA for 9d1b9de
1 file changed
java-iam-admin/.cloud/main.tf
@@ -11,6 +11,10 @@ resource "google_project_service" "iam" {
11
count = var.inputs.should_enable_apis_on_apply ? 1 : 0
12
disable_on_destroy = var.inputs.should_disable_apis_on_destroy
13
}
14
+resource "time_sleep" "for_90s_allowIamToFullyEnable" {
15
+ depends_on = [google_project_service.iam]
16
+ create_duration = "90s"
17
+}
18
resource "random_id" "id" {
19
byte_length = 3
20
@@ -20,5 +24,5 @@ locals {
24
resource "google_service_account" "service_account" {
21
25
account_id = local.service_account_id
22
26
display_name = "Service Account"
23
- depends_on = [google_project_service.iam]
27
+ depends_on = [time_sleep.for_90s_allowIamToFullyEnable]
28
0 commit comments