aws-samples / cdk-lambda-powertools-python-layer

CDK Construct library to create Lambda layer with Powertools for Python library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: provide option to retain the previous layer version

am29d opened this issue · comments

The default update and deletion policy of the CDK layer construct is DELETE. This is a default behaviour of the CDK library. In some cases we want to keep the previous layer versions, for example if we want to provide a public layer version. In this case deleting the previous version will impact customers who are using previously published versions.

Use applyRemovalPolicy to overwrite the property on the resource level.