Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 1.23 KB

README.md

File metadata and controls

20 lines (17 loc) · 1.23 KB

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