Skip to content

Commit

Permalink
Create the documentation of data.aws_organizations_accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
ebi-yade committed Apr 13, 2021
1 parent 117439f commit 8e415e6
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions website/docs/d/organizations_accounts.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
subcategory: "Organizations"
layout: "aws"
page_title: "AWS: aws_organizations_accounts"
description: |-
Get all direct child organizational units under a parent organizational unit. This only provides immediate children, not all children.
---

# Data Source: aws_organizations_accounts

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

## Example Usage

```terraform
data "aws_organizations_organization" "org" {}
data "aws_organizations_accounts" "ou" {
parent_id = data.aws_organizations_organization.org.roots[0].id
}
```

## Argument Reference

* `parent_id` - (Required) The parent ID of the accounts.

## Attributes Reference

* `children` - List of child accounts, which have the following attributes:
* `arn` - ARN of the organizational account
* `name` - Name of the organizational account
* `id` - ID of the organizational account
* `email` - `email` - Email of the account
* `id` - Parent identifier of the accounts.

0 comments on commit 8e415e6

Please sign in to comment.