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