AWS Fundamentals Logo
AWS Fundamentals
AWS::Organizations::OrganizationalUnit

Organizations OrganizationalUnit

You can use organizational units (OUs) to group accounts together to administer as a single unit. This greatly simplifies the management of your accounts. For example, you can attach a policy-based control to an OU, and all accounts within the OU automatically inherit the policy. You can create multiple OUs within a single organization, and you can create OUs within other OUs. Each OU can contain multiple accounts, and you can move accounts from one OU to another. However, OU names must be un...

Properties

3 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
Name
string
Required
ParentId
string
RequiredCreate-only
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ArnstringThe Amazon Resource Name (ARN) of this OU.
IdstringThe unique identifier (ID) associated with this OU.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Organizations::OrganizationalUnit

Resources:
  MyResource:
    Type: AWS::Organizations::OrganizationalUnit
    Properties:
      Name: "my-name"
      ParentId: "my-parentid"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

organizations:CreateOrganizationalUnitorganizations:DescribeOrganizationalUnitorganizations:ListParentsorganizations:ListOrganizationalUnitsForParentorganizations:ListTagsForResourceorganizations:TagResource

read

organizations:DescribeOrganizationalUnitorganizations:ListParentsorganizations:ListTagsForResource

update

organizations:DescribeOrganizationalUnitorganizations:ListParentsorganizations:ListTagsForResourceorganizations:TagResourceorganizations:UntagResourceorganizations:UpdateOrganizationalUnit

delete

organizations:DeleteOrganizationalUnit

list

organizations:ListOrganizationalUnitsForParent

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceOrganizations
Properties5
Required2
TaggingSupported
Primary IDId

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

ParentId

External Links