data.aws_organizations_organization doesn't pull all accounts when used from child account #20899
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/organizations
Issues and PRs that pertain to the organizations service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.15.3
on darwin_amd64
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
N/A
Panic Output
N/A
Expected Behavior
When using a child account to run the terraform I expect to see all my organizations accounts in
data.aws_orgnizations_organization.org.accounts
just like I do when I callaws organizations list-accounts
.Actual Behavior
data.aws_orgnizations_organization.org.accounts
is nullSteps to Reproduce
terraform apply
the above hclImportant Factoids
Adding to the account fields in blocked by requiring the terraform to be running as the root account:
terraform-provider-aws/aws/data_source_aws_organizations_organization.go
Line 159 in 118137c
References
N/A
The text was updated successfully, but these errors were encountered: