serverless-aws-latest-layer-version
v0.4.3
Published
Serverless plugin to support AWS Lambda Layers $LATEST tag
Downloads
5,016
Maintainers
Readme
serverless-aws-latest-layer-version
Serverless plugin to support AWS Lambda Layers $LATEST tag.
This replace layer version, referring to aws credentials profile.
export AWS_PROFILE and "serverless.yml provider > profile" settings are all supported.
Support hooks
- serverless deploy
- serverless deploy function
- serverless package
Install
Install package as development dependency.
npm i serverless-aws-latest-layer-version --save-dev
Setup
add the plugin to serverless.yml
plugins:
- serverless-aws-latest-layer-version
We have to replace the Layer version to $LATEST.arn:aws:lambda:us-east-1:000000000000:layer:test:$LATEST
AWS credentials profile (Optional)
To specify a separate ~/.aws/credentials
profile alias other than [default]
, choose one of them
export AWS_PROFILE={profileAlias}
&& sls deploy- serverless.yml file configuration.
provider:
profile: {profileAlias}
- sls deploy
--aws-profile={profileAlias}
(serverless old version)
Changelog
0.4.3
- Fixed deprecated RegExp
0.4.2
- update to aws sdk version
0.4.1
- update to aws sdk v3 version
- optimize get layer version
0.3.2
- env AWS_PROFILE supported
0.2.6
- optimize error handling
0.2.5
- resource layers version bug fix
0.2.4
- modified to refer to aws credentials profile
It was created with the idea of "serverless-latest-layer-version"