-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Original Post
In current state when you use a
dateOlderThanfilter, it'll return an error if it comes across a resource/field that it cannot parse as a date, and will preventaws-nukefrom running on all of the other resources it may have successfully processedThis change will instead only log a warning when an error occurs, which the user will be able to see. The resource will not be filtered out (although I'm not opinionated either way, my main goal is to not hold up
aws-nukefrom running because one resource was misconfigured)I'm open to feedback/change requests
Here's an example output with these changes:
Do you really want to nuke the account with the ID 123456789012 and the alias 'my-account'? Waiting 3s before continuing. time="2024-07-11T21:22:47Z" level=warning msg="Failed to parse date IAMNOTADATE: unable to parse time IAMNOTADATE" us-west-1 - DynamoDBTable - testing - [Identifier: "testing", tag:expiration-date: "IAMNOTADATE"] - would remove Scan complete: 1 total, 1 nukeable, 0 filtered. The above resources would be deleted with the supplied configuration. Provide --no-dry-run to actually destroy resources.
Upstream Reference: rebuy-de/aws-nuke#1245
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels