AWS Service name
Organizations
Operations needed
ListParents(ChildId) — ChildId is an ou-* id or an account id. Read the stored parent and return the single parent AWS returns:
{ "Parents": [ { "Id": "<parent_id>", "Type": "ROOT" | "ORGANIZATIONAL_UNIT" } ] }
(Type = ROOT when the parent id starts with r-, else ORGANIZATIONAL_UNIT). Return ChildNotFoundException for an unknown ChildId.
Use case
A multi-OU Terraform/OpenTofu build (aws_organizations_organizational_unit) creates OUs via CreateOrganizationalUnit (already supported), but the provider's Read then calls ListParents to populate parent_id — real-AWS DescribeOrganizationalUnit doesn't return the parent, so the provider must ListParents the child, and in SDKv2 this fires on every create and refresh. ListParents isn't implemented, so apply errors on the read-back (InvalidAction: Operation 'ListParents' not implemented): nested OUs never get created, outputs are empty, idempotency is unreachable. This single read op unblocks the whole OU-hierarchy flow locally. (It also covers the account read-back needed if CreateAccount/MoveAccount are added later.)
Would you like to contribute this?
AWS Service name
Organizations
Operations needed
ListParents(ChildId)—ChildIdis anou-*id or an account id. Read the stored parent and return the single parent AWS returns:{ "Parents": [ { "Id": "<parent_id>", "Type": "ROOT" | "ORGANIZATIONAL_UNIT" } ] }(
Type = ROOTwhen the parent id starts withr-, elseORGANIZATIONAL_UNIT). ReturnChildNotFoundExceptionfor an unknownChildId.Use case
A multi-OU Terraform/OpenTofu build (
aws_organizations_organizational_unit) creates OUs viaCreateOrganizationalUnit(already supported), but the provider's Read then callsListParentsto populateparent_id— real-AWSDescribeOrganizationalUnitdoesn't return the parent, so the provider mustListParentsthe child, and in SDKv2 this fires on every create and refresh.ListParentsisn't implemented, soapplyerrors on the read-back (InvalidAction: Operation 'ListParents' not implemented): nested OUs never get created, outputs are empty, idempotency is unreachable. This single read op unblocks the whole OU-hierarchy flow locally. (It also covers the account read-back needed ifCreateAccount/MoveAccountare added later.)Would you like to contribute this?