Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.69 KB

README.md

File metadata and controls

37 lines (30 loc) · 1.69 KB

GitHub Action - AWS Lambda Layer Publish with compatible runtime

GitHub release (latest by date) semantic-release

Deploy a layer to aws lambda

Usage

Secrets

Add Secret before this action. Settings > Secrets > Add a new secret

  • AWS_REGION
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY

Example

- 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"]' 

Compatible Runtime Values

  • 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

Important

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.