File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
modules/integrations/event-bridge Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 1- data "aws_organizations_organization" "org" {
2- count = var. is_organizational ? 1 : 0
3- }
4-
5- locals {
6- organizational_unit_ids = var. is_organizational && length (var. org_units ) == 0 ? [for root in data . aws_organizations_organization . org [0 ]. roots : root . id ] : toset (var. org_units )
7- }
8-
91resource "aws_cloudformation_stack_set" "eb_rule_api_dest_stackset" {
102 count = var. is_organizational ? 1 : 0
113
@@ -73,7 +65,7 @@ resource "aws_cloudformation_stack_set_instance" "eb_rule_api_dest_instance" {
7365
7466 stack_set_name = aws_cloudformation_stack_set. eb_rule_api_dest_stackset [0 ]. name
7567 deployment_targets {
76- organizational_unit_ids = local. deployment_targets_org_units
68+ organizational_unit_ids = local. deployment_targets_ous . org_units_to_deploy
7769 accounts = local. check_old_ouid_param ? null : (local. deployment_targets_accounts_filter == " NONE" ? null : local. deployment_targets_accounts . accounts_to_deploy )
7870 account_filter_type = local. check_old_ouid_param ? null : local. deployment_targets_accounts_filter
7971 }
@@ -96,7 +88,7 @@ resource "aws_cloudformation_stack_set_instance" "eb_role_stackset_instance" {
9688
9789 stack_set_name = aws_cloudformation_stack_set. eb_role_stackset [0 ]. name
9890 deployment_targets {
99- organizational_unit_ids = local. deployment_targets_org_units
91+ organizational_unit_ids = local. deployment_targets_ous . org_units_to_deploy
10092 accounts = local. check_old_ouid_param ? null : (local. deployment_targets_accounts_filter == " NONE" ? null : local. deployment_targets_accounts . accounts_to_deploy )
10193 account_filter_type = local. check_old_ouid_param ? null : local. deployment_targets_accounts_filter
10294 }
You can’t perform that action at this time.
0 commit comments