diff --git a/resources/configservice-configrules.go b/resources/configservice-configrules.go index 1246fdb88..e185b2070 100644 --- a/resources/configservice-configrules.go +++ b/resources/configservice-configrules.go @@ -44,6 +44,9 @@ func ListConfigServiceConfigRules(sess *session.Session) ([]Resource, error) { } func (f *ConfigServiceConfigRule) Remove() error { + f.svc.DeleteRemediationConfiguration(&configservice.DeleteRemediationConfigurationInput{ + ConfigRuleName: f.configRuleName, + }) _, err := f.svc.DeleteConfigRule(&configservice.DeleteConfigRuleInput{ ConfigRuleName: f.configRuleName,