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.
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
Pull requests are always welcome. Please see the contributing guidelines.