Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 7c612f4

Browse files
Disabling Remediation Configuration from configservice rules before attempting deletion of rule (#1001)
1 parent 36a47fe commit 7c612f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

resources/configservice-configrules.go

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ func ListConfigServiceConfigRules(sess *session.Session) ([]Resource, error) {
4444
}
4545

4646
func (f *ConfigServiceConfigRule) Remove() error {
47+
f.svc.DeleteRemediationConfiguration(&configservice.DeleteRemediationConfigurationInput{
48+
ConfigRuleName: f.configRuleName,
49+
})
4750

4851
_, err := f.svc.DeleteConfigRule(&configservice.DeleteConfigRuleInput{
4952
ConfigRuleName: f.configRuleName,

0 commit comments

Comments
 (0)