This is a collection of utilities that might be useful to you if you are using the Serverless framework.
Each utility is a little different. Here are some examples:
If you want to use the current git repo code version as a variable in your serverless.yml file, you can do the following:
provider:
name: aws
runtime: nodejs4.3
environment:
CODE_VERSION: ${file(./node_modules/@silvermine/serverless-utils/src/get-code-version.js):both}
CODE_HASH: ${file(./node_modules/@silvermine/serverless-utils/src/get-code-version.js):hash}
CODE_TAG: ${file(./node_modules/@silvermine/serverless-utils/src/get-code-version.js):tag}
We genuinely appreciate external contributions. See our extensive documentation on how to contribute.
This software is released under the MIT license. See the license file for more details.