Skip to content

juancarbonel/serverless-offline-ssm

 
 

Repository files navigation

serverless-offline-ssm

Build Status

This Serverless plugin allows you to develop offline while using AWS SSM parameters in your serverless.yml template. The plugin looks for environment variables which are fulfilled by SSM parameters at build time and substitutes them from a .env file when running locally with the serverless-offline plugin.

Documentation

Installation

First install the plugins using npm or yarn

npm install serverless-offline serverless-offline-ssm --save-dev

#or

yarn install -D serverless-offline serverless-offline-ssm

Then inside of your project's serverless.yml file add the following to the plugins section. Note it is important that serverless-offline-ssm is loaded before serverless-offline. This is important to ensure that we are setting the variables properly for serverless-offline before it needs them.

plugins:
    - serverless-offline-ssm
    - serverless-offline

Contributing

Pull requests are always welcome. Please see the contributing guidelines.

License

MIT

About

Read SSM parameters from a .env file instead of AWS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%