Update aws_organizations_organization to output accounts excluding master #8903
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/organizations
Issues and PRs that pertain to the organizations service.
Milestone
Based on documentation, https://www.terraform.io/docs/providers/aws/r/organizations_organization.html you can output the list off account ids via aws_organizations_organization resources by referencing:
"${lookup(aws_organizations_organization.root.accounts[count.index], "id")}"
However, I am trying to create resources for member accounts to accept invitations from the master account and therefore the resource needs to loop through all account ids for member accounts. Is there any way you can output accounts excl master?
The text was updated successfully, but these errors were encountered: