We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d1d367 commit 3875465Copy full SHA for 3875465
modules/service-deployment/regional.tf
@@ -50,7 +50,7 @@ module "region" {
50
ram = {
51
create_lag_shares = local.create_lag_shares
52
lag_share_name = local.lag_share_name
53
- target_account_ids = try(flatten(values(data.aws_organizations_organizational_unit_descendant_accounts.target_accounts)[*].accounts[*].id), [])
+ target_account_ids = try([for i in flatten(values(data.aws_organizations_organizational_unit_descendant_accounts.target_accounts)[*].accounts[*]) : i.id if i.state == "ACTIVE"], [])
54
}
55
stepfunctions = {
56
ingest_state_machine_name = local.ingest_state_machine_name
0 commit comments