From d3d0642e7767dcf5655e8079c8998cc31483657d Mon Sep 17 00:00:00 2001 From: Kevin Date: Thu, 3 Oct 2024 15:29:52 -0400 Subject: [PATCH] Change to use the org root ID --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index b1379db..c646975 100644 --- a/main.tf +++ b/main.tf @@ -59,5 +59,5 @@ resource "aws_organizations_policy_attachment" "tag_policy_attachment_org" { count = var.attach_to_org ? 1 : 0 policy_id = aws_organizations_policy.this.id - target_id = data.aws_organizations_organization.org.id + target_id = data.aws_organizations_organization.org.roots[0].id }