Package Exports
- serverless-layer-version-latest
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (serverless-layer-version-latest) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
serverless-layer-version-latest
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.
$ npm i serverless-layer-version-latest --save-dev
Then, add the plugin to serverless.yml
# serverless.yml
plugins:
- serverless-layer-version-latest
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
1.0.5
- Fix bug so that this plugin can coexist with serverless-psuedo-parameters
1.0.3
- Fixed a bug that cause plugin failure when there's no any
Resources
field exists on theserverless.yml
(#1, Thanks to @falaa)
1.0.2
- Initial release
License
See full license on mooyoul.mit-license.org