Skip to content

Commit

Permalink
corrected org parent_id
Browse files Browse the repository at this point in the history
  • Loading branch information
agjmills committed May 3, 2024
1 parent 2f07113 commit 2e4d819
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,40 +47,40 @@ data "aws_organizations_organization" "org" {}

resource "aws_organizations_organizational_unit" "sandbox" {
name = "Sandbox"
parent_id = data.aws_organizations_organization.org.id
parent_id = data.aws_organizations_organization.org.roots[0].id
}

resource "aws_organizations_organizational_unit" "workloads" {
name = "Workloads"
parent_id = data.aws_organizations_organization.org.id
parent_id = data.aws_organizations_organization.org.roots[0].id
}

resource "aws_organizations_organizational_unit" "suspended" {
name = "Suspended"
parent_id = data.aws_organizations_organization.org.id
parent_id = data.aws_organizations_organization.org.roots[0].id
}

resource "aws_organizations_organizational_unit" "security" {
name = "Security"
parent_id = data.aws_organizations_organization.org.id
parent_id = data.aws_organizations_organization.org.roots[0].id
}

resource "aws_organizations_organizational_unit" "exceptions" {
name = "Exceptions"
parent_id = data.aws_organizations_organization.org.id
parent_id = data.aws_organizations_organization.org.roots[0].id
}

resource "aws_organizations_organizational_unit" "workloads_dev" {
name = "Development"
parent_id = aws_organizations_organizational_unit.workloads.id
parent_id = data.aws_organizations_organization.org.roots[0].id
}

resource "aws_organizations_organizational_unit" "workloads_staging" {
name = "Staging"
parent_id = aws_organizations_organizational_unit.workloads.id
parent_id = data.aws_organizations_organization.org.roots[0].id
}

resource "aws_organizations_organizational_unit" "workloads_production" {
name = "Production"
parent_id = aws_organizations_organizational_unit.workloads.id
parent_id = data.aws_organizations_organization.org.roots[0].id
}

0 comments on commit 2e4d819

Please sign in to comment.