jckuester / awsweeper

A tool for cleaning your AWS account
Mozilla Public License 2.0
467 stars 45 forks source link

Feature Request: Delete by last use time #109

Open iamed2 opened 4 years ago

iamed2 commented 4 years ago

The fear I have with deleting by creation time is that I have old resources that are still being used. This is meaningful for things like CloudWatch Log Groups and IAM Access Keys.

Some of these are easy (e.g., IAM Access Keys have a last-used property) and some are less so (e.g., CloudWatch Log Groups last use time would be defined by the latest event in each Log Stream).

The addition of this functionality would make this tool incredibly useful to me.

jckuester commented 4 years ago

Hi @iamed2 :wave:

Thanks for your feature request - an interesting use case that definitively makes sense. I generally try to avoid adding much corner-case-code to handle cases like the one you are describing to filter CloudWatch Log Groups by the time of their last event. But let's see what I can do here...

(FYI: letting you know that my time is currently quite limited so it might not happen very quickly).

iamed2 commented 4 years ago

No worries! If it happens, I'll be excited and definitely use it immediately, and if it doesn't, I'll have this tool in mind for the future.