The code for packing lambdas and layers has been published as a standalone library: https://github.com/bifravst/aws-cdk-lambda-helpers Example migration: https://github.com/hello-nrfcloud/backend/pull/588