New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify dateOlderThan documentation to provide full syntax #756
Comments
Also posted at SO |
I think you have to specify the date in hours: |
Can you provide a syntax for the cleaning up EC2 instances that are 30 days or older. |
@jamesgeddes According to the docs, a value of "-7d" should work. |
That's handy! |
######################
|
Same here, I'm still getting I have updated the ticket title accordinly |
Hello. Please take a look at this answer: #767 (comment) |
Riiiiight! Makes sense! It would certainly be helpful if the readme could explicitly clarify this, particularly as I am apparently not the only person to be confused 😂 Thank you in advance |
It would also be helpful to clarify the logic that dateOlderThan is using. For example, I now have the config of, accounts:
xxxxxxxxxxxx:
filters:
EC2Instance:
- property: LaunchTime
type: dateOlderThan
value: "100h"
S3Bucket:
- property: Name
value: "foo" As I understand it, if an object matches the filter, it is skipped, so here, I would expect the following to be saved
What actually happens is that the following are saved,
Conveniently, I wanted to save new instances anyway, however, is this behaviour counterintuitive? Equally, is it too late to change it now? |
This is discussed here: #480
Yes, this would break the filters of everyone using it. |
How do you nuke resources that are more than 7 days old, rather than older than a fixed date?
The text was updated successfully, but these errors were encountered: