Skip to content

Commit 52d09b1

Browse files
Remove redundant datasource block in eb module (#51)
1 parent 3b46ed5 commit 52d09b1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

modules/integrations/event-bridge/organizational.tf

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@
44
# For a single account installation, see main.tf.
55
#-----------------------------------------------------------------------------------------------------------------------
66

7-
data "aws_organizations_organization" "org" {
8-
count = var.is_organizational ? 1 : 0
9-
}
10-
11-
locals {
12-
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)
13-
}
14-
157
# stackset to deploy eventbridge rule in organization unit
168
resource "aws_cloudformation_stack_set" "eb-rule-stackset" {
179
count = var.is_organizational ? 1 : 0

0 commit comments

Comments
 (0)