Skip to content

KillDozerX2/aws-lambda-publishlayer

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

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 79.2%
  • TypeScript 20.8%