Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Sep 8, 2023
1 parent f6c1e5b commit febf2f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion group-assignment/accounts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ locals {
organizational_units = distinct(compact(concat(local._ou_1, local._ou_2)))

_id_3 = flatten([for k, v in data.aws_organizations_organizational_unit_descendant_accounts.ou : [for account in v.accounts : account.id if account.status == "ACTIVE"]])
_id_4 = var.org_all ? values(local.active_accounts) : []

account_ids = distinct(compact(concat(local._id_1, local._id_2, local._id_3)))
account_ids = distinct(compact(concat(local._id_1, local._id_2, local._id_3, local._id_4)))
}

data "aws_organizations_organizational_unit_descendant_accounts" "ou" {
Expand Down

0 comments on commit febf2f2

Please sign in to comment.