@sudolabs-io/aws-ssm-cli

1.3.145 • Public • Published

AWS SSM CLI

Command line utility for managing environment variables in AWS Systems Manager Parameter Store.

release workflow npm npm

Examples

Push

Imagine having .env file with content:

DBNAME=postgres
DBUSER=postgres

To push environment variables into AWS SSM Parameter Store run:

$ ssm push --prefix="/<project>/<environment>/" --file=".env"
   0 up-to-date
 ~ 0 updated
 + 2 created

Pull

Pull environment variables from AWS SSM Parameter Store:

$ ssm pull --prefix="/<project>/<environment>/"
DBNAME=postgres
DBUSER=postgres

Pull environment variables from AWS SSM Parameter Store as JSON:

$ ssm pull --prefix="/<project>/<environment>/" --json
{ "DBNAME": "postgres", "DBUSER": "postgres" }

Pull environment variables from AWS SSM Parameter Store as JSON object with predefined key:

$ ssm pull --prefix="/<project>/<environment>/" --json --group="environment_variables"
{ "environment_variables": { "DBNAME": "postgres", "DBUSER": "postgres" } }

More

Show help:

$ ssm --help

Show version:

$ ssm --version

Package Sidebar

Install

npm i @sudolabs-io/aws-ssm-cli

Weekly Downloads

78

Version

1.3.145

License

MIT

Unpacked Size

29 kB

Total Files

15

Last publish

Collaborators

  • sudo-labs
  • mklakakilli
  • selrond