AWS IAM Organizational Unit

This page shows how to write Terraform for IAM Organizational Unit and write them securely.

code-icon

Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.

get-started-button

Terraform Example (aws_organizations_organizational_unit)

Provides a resource to create an organizational unit.

Parameters

Example Usage (from GitHub)

github-iconhapoon/aws-infra
resource "aws_organizations_organizational_unit" "develop_a" {
  name      = "Aサービス事業部"
  parent_id = data.aws_organizations_organization.my_org.roots[0].id
}

resource "aws_organizations_organizational_unit" "develop_a1group" {
github-iconchris2fer/aws-org-test
resource "aws_organizations_organizational_unit" "core" {
  name      = "core"
  parent_id = data.aws_organizations_organization.my_org.roots[0].id
}

resource "aws_organizations_organizational_unit" "teams" {
github-icongustavopelizoni/aws-terraform-organizations
resource "aws_organizations_organizational_unit" "Inovacao" {
  name      = "Inovacao"
  parent_id = aws_organizations_organization.Root.roots[0].id

}

github-iconnzrf/aws-orgs-mgmt
resource "aws_organizations_organizational_unit" "application" {
    # OU Must be created before childen n the ou can be created
    depends_on = [aws_organizations_organization.org]
    name =  "application"
    parent_id = aws_organizations_organization.org.roots[0].id
}
github-iconifunky/terraform-generator
resource "aws_organizations_organizational_unit" "core" {
  name      = "Core"
  parent_id = aws_organizations_organization.default.roots.0.id
}

resource "aws_organizations_organizational_unit" "development" {

CloudFormation Example

CloudFormation code does not have the related resource.

Frequently asked questions

What is AWS IAM Organizational Unit?

AWS IAM Organizational Unit is a resource for IAM of Amazon Web Service. Settings can be wrote in Terraform.

Where can I find the example code for the AWS IAM Organizational Unit?

For Terraform, the hapoon/aws-infra, chris2fer/aws-org-test and gustavopelizoni/aws-terraform-organizations source code examples are useful. See the Terraform Example section for further details.