Skip to content

Commit 259c381

Browse files
committed
add time sleep
1 parent 351d028 commit 259c381

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

0-bootstrap/cb.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ module "tf_source" {
131131
}
132132

133133
# Remove after github.com/terraform-google-modules/terraform-google-bootstrap/issues/160
134-
depends_on = [module.seed_bootstrap, module.organization_policies_type_boolean]
134+
depends_on = [module.seed_bootstrap, time_sleep.wait_organization_policies]
135135
}
136136

137137
module "tf_private_pool" {

0-bootstrap/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,5 @@ module "seed_bootstrap" {
9999

100100
sa_org_iam_permissions = []
101101

102-
depends_on = [module.required_group, module.organization_policies_type_boolean]
102+
depends_on = [module.required_group, time_sleep.wait_organization_policies]
103103
}

0-bootstrap/org_policy.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@ module "organization_policies_type_boolean" {
3737
enforce = "true"
3838
constraint = "constraints/${each.value}"
3939
}
40+
41+
resource "time_sleep" "wait_organization_policies" {
42+
create_duration = "30s"
43+
depends_on = [
44+
module.organization_policies_type_boolean
45+
]
46+
}

0 commit comments

Comments
 (0)