diff --git a/main.tf b/main.tf index 9a3a10d..02f9902 100644 --- a/main.tf +++ b/main.tf @@ -72,17 +72,17 @@ resource "aws_organizations_organizational_unit" "exceptions" { resource "aws_organizations_organizational_unit" "workloads_dev" { name = "Development" - parent_id = data.aws_organizations_organization.org.roots[0].id + parent_id = aws_organizations_organizational_unit.workloads.id } resource "aws_organizations_organizational_unit" "workloads_staging" { name = "Staging" - parent_id = data.aws_organizations_organization.org.roots[0].id + parent_id = aws_organizations_organizational_unit.workloads.id } resource "aws_organizations_organizational_unit" "workloads_production" { name = "Production" - parent_id = data.aws_organizations_organization.org.roots[0].id + parent_id = aws_organizations_organizational_unit.workloads.id } resource "aws_organizations_account" "production" {