Sharing Python code as a lambda layer using the Serverless framework
问题 This is a follow up question to: This Question I am trying to upload some shared Python code as a lambda layer to AWS Lambda using the serverless framework. I had followed @msc's solution (with some modifications): Project 1: Step 1: Create a serverless project with the following structure: ./ └ serverless.yml └ common/ └ python/ └ Other packages as per requirements.txt └ my_shared_script.py - my own package Step 2: Setup my .yml file: service: library provider: name: aws runtime: python3.7