Serverless Offline Ssm

homepage icon https://github.com/janders223/serverless-offline-ssm
Follow @janders223

Tracked

NPM Downloads Last Month
568
Issues
1
Stars
18
Forks
7
Watchers
18
Watch Star Fork Issue Download License NPM Build Status Coverage Status Contributors

Repo README Contents:

serverless-offline-ssm

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.

NOTE: It is imperative that serverless-offline-ssm be the the first plugin listed in the plugins section of your serverless.yml file. Due to the load order of plugins, other plugins may interfere with the loading of your .env file.

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

Contributing

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

License

MIT