- Newest
- Most votes
- Most comments
When dealing with conformance packs created by Quick Setup that are owned by config-multiaccountsetup.amazonaws.com, there are specific steps you need to follow since these are organization conformance packs that aren't automatically deleted when you delete the Quick Setup configuration.
The key issue is that these conformance packs must be deleted from the management account or a delegated administrator account using the DeleteOrganizationConformancePack API, not the DeleteConformancePack API that you tried from the member account.
Here's how to properly delete these conformance packs:
- From your management account (or delegated administrator account), use the AWS CLI to find the actual names of the organization conformance packs:
aws configservice describe-organization-conformance-packs
-
If the command returns an empty list in your management account, there might be a region mismatch. Try running the command in different regions where the conformance packs might have been deployed.
-
Once you identify the correct names of the organization conformance packs, delete them using:
aws configservice delete-organization-conformance-pack --organization-conformance-pack-name [PACK_NAME]
- You'll need to repeat this process for each region where the conformance packs were deployed.
If you're still encountering issues after following these steps, you may need to contact AWS Support with the ARN of the conformance packs to help clean up your account, as these could be dangling resources that require additional assistance to remove.
Remember that only a management account or a delegated administrator account with proper permissions can delete organization conformance packs, which explains why you received the AccessDeniedException when trying to delete from a member account.
Sources
AWS Conformance packs not deleting when deleting quick setup (ANSWERED) | AWS re:Post
DeleteOrganizationConformancePack - AWS Config
Troubleshooting for Conformance Packs for AWS Config - AWS Config
Relevant content
asked 3 years ago
asked 3 years ago
- AWS OFFICIALUpdated a year ago
