[New Resource]: Individually manage service enablement for an AWS Organization, aws_organizations_aws_service_access
#40878
Labels
new-resource
Introduces a new resource.
service/organizations
Issues and PRs that pertain to the organizations service.
Description
Currently, the only way to enable a service for an AWS Organization is to use the resource
aws_organizations_organization
, via the inputaws_service_access_principals
. The problem is that this model only supports exclusive management of the enabled services. That means that a single config can manage this resource and must list all of the enabled services. If different configs try to manage different services, they will separately create drift and constantly enable and disable services.The API for this is
organizations:EnableAWSServiceAccess
, which actually only accepts a single service at a time. So it feels odd thataws_organizations_organization
was implemented to manage all services, rather than having a separate resource that focuses on the single API call.I do appreciate that there is a mechanism for exclusive management of the enabled services, but would also like to have a mechanism where non-exclusive management is an option. Perhaps the new "exclusive" pattern could apply here also. The logic for enabling a service would be contained in a single resource, and a separate "exclusive" resource could be used to enforce the exclusive relationship if a user desired.
This is also loosely related to #40874, making the organizations api more flexible.
Requested Resource(s) and/or Data Source(s)
aws_organizations_aws_service_access
Potential Terraform Configuration
References
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: