mlevit / aws-auto-cleanup

Programmatically delete AWS resources based on an allowlist and time to live (TTL) settings
MIT License
496 stars 55 forks source link

Show the resource age in the execution log #86

Closed atqhg23 closed 2 years ago

atqhg23 commented 2 years ago

Is your feature request related to a problem? Please describe.

Yes, the execution log shows the "SKIP - TTL" action for resources that are under the TTL setting, but it would be useful to know the exact resource age to see how long it will be until a resource is destroyed. This can also be useful in determining what the TTL setting should be set to. I think it would help to include the resource age in the whitelist (both temporary and permanent) as well.

Describe the solution you'd like

Add a column in the execution log titled "Age" that shows the age in days of each resource scanned.

Describe alternatives you've considered

Not really sure of an alternative for this.

Additional context Example screenshot below resource-age-in-exec-log

atqhg23 commented 2 years ago

Kept thinking about this and I think adding these 3 columns to the execution log may be a good idea:

Below is a screenshot of what this may end up looking like. age-destroyIn-signal-in-exec-log

What are your thoughts on this?

DesAWSume commented 2 years ago

Love your idea, have you implemented this?

Kept thinking about this and I think adding these 3 columns to the execution log may be a good idea:

  • Age: Resource age in days
  • Destroy In: The number of days until the resource is destroyed based on the time to live setting.
  • Signal: Three possible options - This could be Green (below 50% of the TTL), Yellow (above 50% of the TTL), or Red (at or past the TTL).

Below is a screenshot of what this may end up looking like. age-destroyIn-signal-in-exec-log

What are your thoughts on this?

Love your idea, have you implemented this?