serverless-python-requirements
serverless-python-requirements copied to clipboard
Create option to not retain previous lambda layers
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.
I agree with rjay98. this would be SUPER helpful!
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