serverless-python-requirements icon indicating copy to clipboard operation
serverless-python-requirements copied to clipboard

Create option to not retain previous lambda layers

Open rjay98 opened this issue 5 years ago • 2 comments

Hi,

As per serverless docs, the default layers behavior is to not retain previous versions of Lambda layers – can we add this functionality to serverless-python-requirements? In particular, this is very useful so we don't need to constantly update the ARN in other yml files whenever dependencies change.

rjay98 avatar Oct 07 '20 21:10 rjay98

I agree with rjay98. this would be SUPER helpful!

jamieshiz avatar Jul 09 '21 11:07 jamieshiz

I believe this functionality already exists in the serverless.yml config (which this plugin injects into). See this page for the retain option:

https://www.serverless.com/framework/docs/providers/aws/guide/layers

wwwehr avatar Oct 20 '21 00:10 wwwehr