A Github Action to deploy AWS Lambda functions written in Python with their dependencies in a layer.
The Action to have access to the code, you must use the actions/checkout@master
.
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'