Skip to content

silvermine/serverless-utils

Repository files navigation

Silvermine Serverless Utilities

NPM Version License Build Status Coverage Status

What is it?

This is a collection of utilities that might be useful to you if you are using the Serverless framework.

How do I use it?

Each utility is a little different. Here are some examples:

Get Code Version

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}

How do I contribute?

We genuinely appreciate external contributions. See our extensive documentation on how to contribute.

License

This software is released under the MIT license. See the license file for more details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published