cloud-nuke icon indicating copy to clipboard operation
cloud-nuke copied to clipboard

Feature Request - Removing AWS Config and AWS Config Rules

Open marklehmann26 opened this issue 5 years ago • 3 comments

Just wondering if you are looking to in the future add support for removing all config rules.

Use Case would be if anyone has been playing with config rules and setup and forgot any rules they have configured and are being triggered will cause additional charges to users accounts.

It would be good if the tool could also clear these out so if someone wanted to start their account from scratch they can.

Thoughts anyone?

marklehmann26 avatar Sep 11 '19 19:09 marklehmann26

Are you referring to AWS Config? If so, that sounds like a reasonable addition. PR welcome!

brikis98 avatar Sep 13 '19 09:09 brikis98

Hi, @brikis98 yeah AWS config, apologies I forgot to add this to the title.

marklehmann26 avatar Sep 14 '19 22:09 marklehmann26

FYI, would need to also clean up the delivery-channel as well: https://docs.aws.amazon.com/config/latest/developerguide/manage-delivery-channel.html "The AWS Config console does not provide the option to delete the delivery channel, so you must use the AWS CLI, the AWS Config API, or one of the AWS SDKs."

TryTryAgain avatar Apr 26 '22 14:04 TryTryAgain

Closing this issue out given the fact we have implemented it already. See https://github.com/gruntwork-io/cloud-nuke/blob/75137b08f0b7d565026557ffa3f8259c59d7fcff/aws/resources/config_service.go#L67

gitsstewart avatar Oct 10 '23 15:10 gitsstewart