» Data Source: aws_organizations_organizational_units

Get all direct child organizational units under a parent organizational unit. This only provides immediate children, not all children.

» Example Usage

data "aws_organizations_organization" "org" {}

data "aws_organizations_organizational_units" "ou" {
  parent_id = data.aws_organizations_organization.org.roots[0].id

» Argument Reference

  • parent_id - (Required) The parent ID of the organizational unit.

» Attributes Reference

  • children - List of child organizational units, which have the following attributes:
    • arn - ARN of the organizational unit
    • name - Name of the organizational unit
    • id - ID of the organizational unit