You want to create an AWS Lambda layer so you can separate core function logic from dependencies.
Can you do this using the lambda console?
AWS Lambda is a serverless, event-driven compute service that lets you run code for virtually any type of application or backend service without provisioning or managing servers. You can trigger Lambda from over 200 AWS services and software as a service (SaaS) applications, and only pay for what you use.