https://github.com/mooyoul/serverless-latest-layer-version
A serverless plugin that replaces 'latest' version tag to actual lambda layer version
https://github.com/mooyoul/serverless-latest-layer-version
lambda-layer serverless serverless-plugin
Last synced: 5 months ago
JSON representation
A serverless plugin that replaces 'latest' version tag to actual lambda layer version
- Host: GitHub
- URL: https://github.com/mooyoul/serverless-latest-layer-version
- Owner: mooyoul
- License: mit
- Created: 2019-02-07T21:05:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-24T14:09:34.000Z (about 1 year ago)
- Last Synced: 2025-03-29T06:53:28.512Z (about 1 year ago)
- Topics: lambda-layer, serverless, serverless-plugin
- Language: JavaScript
- Size: 1.97 MB
- Stars: 25
- Watchers: 4
- Forks: 9
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# serverless-latest-layer-version
[](https://github.com/mooyoul/serverless-latest-layer-version/actions)
[](https://github.com/semantic-release/semantic-release)
[](https://renovatebot.com/)
[](http://mooyoul.mit-license.org/)
This is the Serverless plugin for AWS Lambda Layers which enables missing "latest" version tag

## Why?

Unlike invoking Lambda function. Lambda Layer does not support `$LATEST` version tag.
## Install
First, install package as development dependency.
```bash
$ npm i serverless-latest-layer-version --save-dev
```
Then, add the plugin to serverless.yml
```yaml
# serverless.yml
plugins:
- 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](/CHANGELOG.md).
## License
[MIT](LICENSE)
See full license on [mooyoul.mit-license.org](http://mooyoul.mit-license.org/)