ekristen / aws-nuke

Remove all the resources from an AWS account
https://ekristen.github.io/aws-nuke/
MIT License
32 stars 6 forks source link

feat(ec2-image): include disabled and deprecated images #190

Closed ekristen closed 4 weeks ago

ekristen commented 1 month ago

Overview

This improves the EC2Image resource by introducing 3 new settings, by default these settings are false because they would change the behavior of the EC2Image discovery.

In Version 4, these settings will be enabled by default.

New Settings

About Disabling Deregistration Protection

There are 2 types of protection, one with a 24 hour cool-down, and 1 without a cool-down. If the image is protected by the option without a cooldown, the image will be removed immediately given that the DisableDeregistrationProtection setting is true.

If the image is protected with the 24 hour cool-down and DisableDeregistrationProtection is true, then aws-nuke will disable the deregistration protection and then filter the resource out due to it not being eligible for removal. You will then have to re-run aws-nuke after 24 hours to remove the remaining images. Using CLI argument --include EC2Image will target the specific resource type.

ekristen commented 4 weeks ago

:tada: This PR is included in version 3.0.0-beta.62 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

ekristen commented 4 weeks ago

:tada: This PR is included in version 3.0.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: