Skip to content

Commit

Permalink
fix(onboarding): org dependency (#43)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cgeers authored Sep 27, 2024
1 parent 948c2df commit 50bd7eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/onboarding/organizational.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@ resource "sysdig_secure_organization" "google_organization" {

management_account_id = sysdig_secure_cloud_auth_account.google_account.id
organizational_unit_ids = var.management_group_ids
depends_on = [google_organization_iam_member.browser]
depends_on = [
google_organization_iam_member.browser,
sysdig_secure_cloud_auth_account.google_account
]
}

0 comments on commit 50bd7eb

Please sign in to comment.