Skip to content
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

Request: Option to set log expiration #45

Open
elgordino opened this issue Oct 1, 2019 · 2 comments
Open

Request: Option to set log expiration #45

elgordino opened this issue Oct 1, 2019 · 2 comments

Comments

@elgordino
Copy link

Currently the CloudWatch logs are created with 'Never Expire'. Is there an option to set an expiration time?

I have logRetentionDays: 30 set in my provider for the regular lambda functions. Can this be picked up by this plugin? Or alternatively a new option be provided?

Thanks!

@jthomerson
Copy link
Member

Great idea @elgordino. We're open to pull requests. If you read and apply our information on contributing, coding standards, and commit message standards, your review process will go much easier and faster.

https://github.com/silvermine/silvermine-info

@elgordino
Copy link
Author

For anyone coming across this issue there is some more discussion here: serverless/serverless#7574

And they are having a similar issue with CDK: aws/aws-cdk#12690

Fundamentally the issue is that the Logs are not created in a region until someone makes a request in that region and AWS do not provide a way to set the log expiration date when this happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants