Gathering detailed insights and metrics for serverless-offline-ssm
Gathering detailed insights and metrics for serverless-offline-ssm
Gathering detailed insights and metrics for serverless-offline-ssm
Gathering detailed insights and metrics for serverless-offline-ssm
npm install serverless-offline-ssm
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
94 Stars
116 Commits
24 Forks
2 Watching
6 Branches
13 Contributors
Updated on 30 May 2024
TypeScript (81.36%)
Nix (17.56%)
JavaScript (1.09%)
Cumulative downloads
Total Downloads
Last day
-5.7%
5,153
Compared to previous day
Last week
8%
29,690
Compared to previous week
Last month
23%
110,817
Compared to previous month
Last year
-20.4%
1,602,911
Compared to previous year
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.
Version 6.x
only works with Serverless 3+
. Version 5.X
only works Serverless 1.69+
, if you'd like to use this
plugin with Serverless <= 1.59
use version 4.1.2
First install the plugins using npm or yarn
1npm install serverless-offline serverless-offline-ssm --save-dev 2 3#or 4 5yarn add -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.
1plugins: 2 - serverless-offline-ssm 3 - serverless-offline
You can choose to use a .env
file and/or define your variables in
serverless.yml
. Variables within serverless-offline-ssm
take precedence.
serverless-offline-ssm
will always check if the section custom.serverless-offline-ssm
have any values, if not it will fallback to .env
This plugin executes if the stage defined within the plugin options
or provider sections of your serverless.yaml
are includes within the
stages
property of the plugin configuration. If this condition has not been
met the plugin has no effect.
The stages
property of the plugin configuration can be overridden with a
cli parameter --ssmOfflineStages
which takes a comma separated list of
stages.
Your .env
file needs to contain only variable names without the ssm:
prefix and ~(true|false|split)
sulfix.
If you've defined ${ssm:lambda.LAMBDA_NAME.DB_DSN~true}
in serverless.yml
file your .env
need to be like the example bellow:
lambda.LAMBDA_NAME.DB_DSN="VAR VALUE"
1provider: 2 stage: offline 3custom: 4 serverless-offline-ssm: 5 stages: 6 - offline 7 ssm: 8 'lambda.LAMBDA_NAME.DB_DSN': 'sample-value-goes-here' 9 'another.sample.value': '99 red baloons'
Pull requests are always welcome. Please see the contributing guidelines.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More