rebuy-de / aws-nuke

Nuke a whole AWS account and delete all its resources.
MIT License
5.75k stars 721 forks source link

Issue nuking a region - help #1211

Closed abacao closed 5 months ago

abacao commented 5 months ago

Hello,

I'm trying to nuke an account. I have admin privileges but some configurations come from another management accounts such as SSO, SecurityHub, Cloudtrail...

Is there a way to nuke an entire account and skip everything related to the above?

Current run is showing tons of messages like this and it isn't stopping.

...
eu-west-1 - ConfigServiceConfigRule - securityhub-wafv2-rulegroup-logging-enabled-ee1d35dd - failed
eu-west-1 - ConfigServiceConfigRule - securityhub-wafv2-webacl-not-empty-7fe54a8f - failed

Removal requested: 1 waiting, 271 failed, 77 skipped, 1293 finished

eu-west-1 - OSPackage - G101662166 - [CreatedTime: "2023-10-12T17:17:36Z", PackageID: "G101662166", PackageName: "analysis-pinyin"] - failed
eu-west-1 - OSPackage - G11532441 - [CreatedTime: "2023-11-17T23:32:44Z", PackageID: "G11532441", PackageName: "amazon-personalized-ranking"] - failed
...
ekristen commented 5 months ago

@abacao you have to create filters to omit resources you do not want to try and remove.

abacao commented 5 months ago

Hello, I was able to do some exceptions but I'm yet to understand how to use filters.

If I understand how, I will probably open a PR to add some help/information for future users.

Thanks