Skip to content

Commit

Permalink
Merge pull request #2 from rhythmictech/fix-root-id
Browse files Browse the repository at this point in the history
Change to use the org root ID
  • Loading branch information
kmackowick authored Oct 3, 2024
2 parents c732739 + d3d0642 commit fe58c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit fe58c48

Please sign in to comment.