Skip to content

LukasOrcik/action-lambda-layer

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy lambda layer

A Github Action to deploy AWS Lambda functions written in Python with their dependencies in a layer.

Pre-requisites

The Action to have access to the code, you must use the actions/checkout@master.

Example workflow

name: deploy-lambda-layer
on:
  push:
    branches:
      - master
jobs:
  build:
    runs-on: ubuntu-latest
    
    steps:
    - uses: actions/checkout@master
    - name: Lambda layer for python
      uses: LukasOrcik/action-lambda-layer@0.1.24
      with:
        lambda_layer_arn: 'arn:aws:lambda:us-east-2:123456789012:layer:my-layer'
        architectures: 'x86_64'
        runtimes: 'python3.10'
        package_path: 'common'
        layer_description: 'verion 0.1.24'
      env:
        AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
        AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
        AWS_DEFAULT_REGION: 'eu-central-1'