Skip to content
 
 

Repository files navigation

@monei-js/serverless-latest-layer-version

MONEI fork of mooyoul/serverless-latest-layer-version with support for osls v4 (AWS SDK v3).

Renovate enabled MIT license

This is the Serverless plugin for AWS Lambda Layers which enables missing "latest" version tag

demo

Why?

limits

Unlike invoking Lambda function. Lambda Layer does not support $LATEST version tag.

Install

First, install package as development dependency.

$ npm i @monei-js/serverless-latest-layer-version --save-dev

Then, add the plugin to serverless.yml

# serverless.yml

plugins:
  - '@monei-js/serverless-latest-layer-version'

Setup

Just change layer version to latest. The plugin automatically replaces latest version tag to actual latest version number.

For example, if Previously specified layer arn is arn:aws:lambda:us-east-1:800406105498:layer:nsolid-node-10:6. replace that as arn:aws:lambda:us-east-1:800406105498:layer:nsolid-node-10:latest. That's it!

Changelog

See CHANGELOG.

License

MIT

See full license on mooyoul.mit-license.org

Releasing

Bump version in package.json, merge to master, then publish a GitHub release for that version. The Publish workflow publishes to npm with trusted publishing.

About

A serverless plugin that replaces 'latest' version tag to actual lambda layer version

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages