Data Source: aws_organizations_organizational_unit_child_accounts

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

Example Usage

data "aws_organizations_organization" "org" {}

data "aws_organizations_organizational_unit_child_accounts" "accounts" {
  parent_id = data.aws_organizations_organization.org.roots[0].id
}

Argument Reference

Attribute Reference

This data source exports the following attributes in addition to the arguments above: