Skip to content

Commit 50bd7eb

Browse files
authored
fix(onboarding): org dependency (#43)
The implicit dependency organizations have on management accounts sets the apply/creation order correctly. However, the destroy order is not unwound in the reverse order. Add explicit dependency to enforce this behavior.
1 parent 948c2df commit 50bd7eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/onboarding/organizational.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,8 @@ resource "sysdig_secure_organization" "google_organization" {
3131

3232
management_account_id = sysdig_secure_cloud_auth_account.google_account.id
3333
organizational_unit_ids = var.management_group_ids
34-
depends_on = [google_organization_iam_member.browser]
34+
depends_on = [
35+
google_organization_iam_member.browser,
36+
sysdig_secure_cloud_auth_account.google_account
37+
]
3538
}

0 commit comments

Comments
 (0)