Skip to content

Unable to Delete Conformance Packs Owned by "config-multiaccountsetup.amazonaws.com"

0

Hello, I am unable to delete several AWS Config conformance packs from my organization. They appear to be orphaned resources from a previous AWS Systems Manager Quick Setup configuration that was not deleted correctly.

Current State & What I Have Already Tried:

  1. The original CloudFormation StackSet created by Quick Setup is no longer visible in the CloudFormation console.
  2. Running delete-organization-conformance-pack from the management account does not work, as describe-organization-conformance-packs returns an empty list.
  3. Running configservice describe-conformance-packs --region <the-region-name> within a member account returns all the packs i would like to delete but delete-conformance-pack fails with an AccessDeniedException.
  4. I investigated the packs using describe-conformance-packs in a member account and found the owner be config-multiaccountsetup.amazonaws.com

Error Message when trying to delete from a member account: An error occurred (AccessDeniedException) when calling the DeleteConformancePack operation: An AWS service owns this service linked conformance pack. You do not have permissions to take action on this conformance pack.

Any guidance would be greatly appreciated. Thank you.

asked a year ago307 views

1 Answer
0
Accepted Answer

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:

  1. 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
  1. 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.

  2. 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]
  1. 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

answered a year ago

AWS
SUPPORT ENGINEER

reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.