The currently available data source to fetch the organization root is aws_organizations_organization.
However, this data source also fetch several other information such accounts list which takes long time in large scale organizations and requires higher permissions that needed.
a new data source to get organization's roots only would be more suffient
Requested Resource(s) and/or Data Source(s)
aws_organizations_roots
Potential Terraform Configuration
data "aws_organizations_roots" "org" {}
data "aws_organizations_organizational_unit" "ou" {
parent_id = data.aws_organizations_roots.org.roots[0].id
name = "dev"
}
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Description
The currently available data source to fetch the organization root is
aws_organizations_organization
. However, this data source also fetch several other information such accounts list which takes long time in large scale organizations and requires higher permissions that needed.a new data source to get organization's roots only would be more suffient
Requested Resource(s) and/or Data Source(s)
Potential Terraform Configuration
References
Would you like to implement a fix?
None