Deploy a layer to aws lambda
Add Secret before this action. Settings > Secrets > Add a new secret
AWS_REGION
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
- name: AWS Lambda Layer Publish
uses: killdozerx2/aws-lambda-publishlayer@v1.2.0
env:
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
with:
layer_name: TargetFunctionName
zip_file: path/to/file.zip
description: 'verbose description of the layer, not required'
# An array of compatible runtimes, pass as a string, remember to json-stringify the array before including it here, not required
compatible_runtimes: '["any", "aws", "compatible", "runtime"]'
- Up-to-date list of available runtimes can be found at the AWS Lambda runtime developer guide
- Make sure to use the JSON array format rather than the YAML sequence format
This action was forked from taotao2345/aws-lambda-publishlayer.
However, @taotao has not reacted to the pull request and hence this action exists, if you are @taotao or you know @taotao please consider accepting/rejecting the ppull_request.