bonclay7 / aws-amicleaner

Cleanup your old unused ami and related snapshots
MIT License
362 stars 132 forks source link

CLI flags result in unexpected behavior #101

Closed mschuchard closed 1 year ago

mschuchard commented 5 years ago

Currently if I specify --keep-previous 5, the report outputs that all but the previous 1 will be cleaned regardless of the 5.

Also, if query the AMIs to be cleaned by --mapping-key tags --mapping-values somevalue, then it will correctly list the AMIs to be cleaned, but then claim during removal they are excluded due to not having tags, even though they were listed correctly in the first place due to their tags.

This is with Python3 and latest Boto3 and awsamicleaner.