Skip to content

yigiterinc/lambda-layer-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sharing Code

Put your shared functions inside the commons folder and import file like:

from commons import utils.py

or a function

from commons.utils import util_fnc

Installing Dependencies (pip packages)

Add your dependencies to requirements.txt and run this command from the root folder of the project:

pip install -r requirements.txt -t python/lib/python3.9/site-packages

Deploying the Layer

The Serverless Application Model Command Line Interface (SAM CLI) is an extension of the AWS CLI that adds functionality for building and testing Lambda applications. It uses Docker to run your functions in an Amazon Linux environment that matches Lambda. It can also emulate your application's build environment and API.

To use the SAM CLI, you need the following tools.

To build and deploy your application for the first time, run the following in your shell:

sam deploy --guided

Resources

See the AWS SAM developer guide for an introduction to SAM specification, the SAM CLI, and serverless application concepts.

Next, you can use AWS Serverless Application Repository to deploy ready to use Apps that go beyond hello world samples and learn how authors developed their applications: AWS Serverless Application Repository main page

About

A template to create lambda layers that use AWS SAM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages