Sometimes it could be handy to be able to disable Cloudfront as well as just output the resulting URL of the CDN/S3 bucket. Last but not least setting a lifecycle for object expiration could be handy, too. With this PR we are able to expire S3 objects based on the given prefix and the given amount of days. Only output the resulting URL can be handy on scripted usage.
- What I did
Updated the readme
Added --nocdn option to disable Cloudfront handling
Added --urlonly option to only output resulting URLs
Added --expire option to enable an expiration lifecycle (with prefix relation if set)
Thanks, I'll publish v1.9.0 in a few minutes.
Btw, I'll try to add a roadmap for v2, we started working on it. There will be breaking changes. And more tests 😄
- What is it good for
Sometimes it could be handy to be able to disable Cloudfront as well as just output the resulting URL of the CDN/S3 bucket. Last but not least setting a lifecycle for object expiration could be handy, too. With this PR we are able to expire S3 objects based on the given prefix and the given amount of days. Only output the resulting URL can be handy on scripted usage.
- What I did
--nocdn
option to disable Cloudfront handling--urlonly
option to only output resulting URLs--expire
option to enable an expiration lifecycle (with prefix relation if set)- What I did not
Tests are missing. :cry:
- A picture of a cute animal (not mandatory but encouraged)