Open ekristen opened 3 months ago
I think it makes sense to just change this behavior to log the error. After thinking about this this wont actually change the filtering. It wouldn't have matched to begin with and an error just interrupts.
I think this should remain error because this is parsing the configuration and if it's an invalid duration it should be error'd out, or we need a validation on config to error it out before this point.
https://github.com/ekristen/libnuke/blob/main/pkg/filter/filter.go#L131-L134
However, this one should just be a log message because if it gets bad data from a resource, we shouldn't full stop.
https://github.com/ekristen/libnuke/blob/main/pkg/filter/filter.go#L135-L138
Original Post
Upstream Reference: https://github.com/rebuy-de/aws-nuke/pull/1245