[Enhancement]: Datasource for Organizations Policies #31545
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
new-data-source
Introduces a new data source.
service/organizations
Issues and PRs that pertain to the organizations service.
Milestone
Description
There currently is no way to list all of the policies that were created within an AWS organization. This means if the policy is not attached or you do not know what the resource name was prior to writing a new template there would be no way to find the correct policiy in a look up. This same look up functionality can be applied to 4 different types of policies (SERVICE_CONTROL_POLICY | TAG_POLICY | BACKUP_POLICY | AISERVICES_OPT_OUT_POLICY). By providing the datasource a user will be able to list all of the policies associated with an organization.
Affected Resource(s) and/or Data Source(s)
data.aws_organizations_policies
Potential Terraform Configuration
This will be a wrapping of the API ListPolicies in Organizations that only requires a filter to be provided.
References
https://docs.aws.amazon.com/organizations/latest/APIReference/API_ListPolicies.html
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: