From c35332ef58c73be47f1286fab3a3179218691e94 Mon Sep 17 00:00:00 2001 From: Chris Farris Date: Tue, 7 Nov 2023 11:07:05 -0500 Subject: [PATCH] Set default OU to Workloads --- accounts.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/accounts.tf b/accounts.tf index 3b2c8e1..80f0887 100644 --- a/accounts.tf +++ b/accounts.tf @@ -24,11 +24,12 @@ module "accounts" { account_name = each.value["account_name"] account_email = each.value["account_email"] - parent_ou_id = local.ou_name_to_id[each.value["parent_ou_name"]] + parent_ou_id = local.ou_name_to_id[lookup(each.value, "parent_ou_name", "Workloads")] admin_permission_set_arn = var.disable_sso_management ? null : aws_ssoadmin_permission_set.admin_permission_set[0].arn admin_group_id = var.disable_sso_management ? null : aws_identitystore_group.admin_group[0].group_id billing_contact = var.global_billing_contact security_contact = var.global_security_contact operations_contact = var.global_operations_contact disable_sso_management = var.disable_sso_management -} \ No newline at end of file +} +