How can I resolve the error "NoSuchRemediationConfigurationException" or "unexpected internal error" when trying to delete a remediation action in AWS Config?
2 minute read
When I delete a remediation action associated with an AWS config, I receive an error similar to one of the following:
Using the AWS Command Line Interface (AWS CLI) command delete-remediation-configuration:
"An error occurred (NoSuchRemediationConfigurationException) when calling the DeleteRemediationConfiguration operation: No RemediationConfiguration for rule exists."
Using the AWS Management Console:
"An unexpected internal error occurred with AWS Config. Try again or contact AWS Support if the error persists."
How do I resolve this error?
This error message occurs because the PutRemediationConfiguration API call ResourceType parameter was specified in creation but not in deletion. If you use the ResourceType parameter in the PutRemediationConfiguration API, you must also use the ResourceType parameter in the DeleteRemediationConfiguration API.
Note: If no resource type is provided for PutRemediationConfiguration, the default is ResourceType=*.
Follow these instructions to delete the resource type associated with your AWS Config rule.
Important: Before you begin, be sure that you have the latest version of the AWS CLI installed and configured.