serverless-layers icon indicating copy to clipboard operation
serverless-layers copied to clipboard

feature: add option to specify number of layer versions to keep

Open yezarela opened this issue 2 years ago • 3 comments

Hi, would like to have this feature so users can specify number of layer versions to keep.

This feature is needed to avoid old layer versions to take up much storage which was limited by AWS. As stated in AWS documentation here https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html , there is hard limit of 75GB of uploaded functions + layers storage.

Would like to hear your feedback, Thank you!

Example result: image

yezarela avatar Jun 07 '22 12:06 yezarela

Hi @yezarela thank you so much for this PR. It is very welcome. Unfortunately, I'm very busy and rarely have time to work on this project. Thanks again.

So, there's an open issue about this: https://github.com/agutoli/serverless-layers/issues/47

It would be awesome if we could change the option's name from keepVersion to retainVersions, which is more similar to the native support.

agutoli avatar Jun 24 '22 14:06 agutoli

@agutoli thanks for responding! sure, i've updated it to use retainVersions. please kindly check, thanks

yezarela avatar Jun 24 '22 15:06 yezarela

would be nice have this feature :)

brunocasado avatar Jul 22 '22 20:07 brunocasado

This feature was already merged.

agutoli avatar Mar 08 '24 16:03 agutoli