Skip to content

GitHub action to build and deploy lambda layers

License

Notifications You must be signed in to change notification settings

kusumsiri/lambda_layer_github_actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lambda Layer Creation by GitHub Actions

Introduction

This repository creates Lambda Layers with NPM dependencies on the AWS cloud.

Instead of manually deploying Lambda Layers, this CI/CD pipeline automates the build and deployment process.

Workflow

The lambda-layer-creator.yml file handles the CD process. It contains several steps as follows.

  1. actions/setup-node@v3 set up GitHub Actions workflow with node.js
  2. TheDoctor0/[email protected] used to create the release zip archive
  3. giboow/action-aws-cli@v1 AWS CLI GitHub action to push the lambda layer to AWS

How to use

  1. Fork this repository
  2. Create IAM user access keys
  3. Set AWS_ACCESS_KEY_ID & AWS_SECRET_ACCESS_KEY secrets on repository settings
  4. Edit the variable NPM_PACKAGES in the action specification according to need
  5. As soon as push this change, the workflow will run and deploy the layer to AWS

Screenshot