Skip to content

a-slice-of-py/aws-lambda-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LayLa

LayLa is a simple Python project to initialize a Lambda layer ready for build and deploy via aws-sam.

Usage

You can use layla.py as a standalone script or via the provided Makefile.

Available make commands:

  • init: initialize .layla layer folder
  • build: build layer via aws-sam
  • deploy: deploy layer via aws-sam
  • clean: clean everything built with LayLa

Configuration

You will likely have to change some config variables in config.mk.

Available variables:

  • LANGUAGE, interpreter language (default python)
  • SCRIPT, script to be executed (default layla.py)
  • SAM_CMD, location of aws-sam cmd (default "C:\Program Files\Amazon\AWSSAMCLI\bin\sam.cmd")
  • LAYLA_DIR, name of the LayLa build directory (default .layla)
  • LAYER_NAME, layer name (default hello_layla)
  • CONTENTS, Python libraries to be included in the layer (default pandas pyjanitor)
  • STACK_NAME, CloudFormation stack name (default layla-stack)
  • S3_BUCKET, s3 bucket in which aws-sam artifacts must be stored (default layla-bucket)
  • AWS_REGION, name of aws region (default eu-central-1)

Dependencies

You need make and aws-sam to properly exploit LayLa functionalities.

Credits

Credit for core idea goes to Bryson Tyrrell and this Richard guy.

Authors

  • Silvio Lugaro, 2020

About

Fast AWS Lambda layer creation via python, aws-sam and makefile.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published