Socket
Socket
Sign inDemoInstall

ssmx

Package Overview
Dependencies
55
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ssmx

SSMX is a CLI & NodeJS abstraction on AWS SSM that allows you to: - Get all params saved under a given path - Set a new param under a given path - Delete a param from a path - Print all params under a given path to a .env file - Load a .env file into SSM


Version published
Weekly downloads
29
decreased by-21.62%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

SSMX 🦾

SSMX is a CLI & NodeJS abstraction on AWS SSM that allows you to:

  • Get all params saved under a given path
  • Set a new param under a given path
  • Delete a param from a path
  • Print all params under a given path to a .env file
  • Load a .env file into SSM under a given path
  • Execute a command with all params in it's env under a given path
  • Do all of the above synchronously (handy for scripting or in a Lambda env) or asynchronously

Examples are below, a list of all options can either be found in --help or TypeScript definitions. Any questions, just submit an issue!

example: CLI

# Get
$ ssmx get --path=/path/1 --path=/path/2 --recursive
$ ssmx get --path=/path/1 --path=/path/2 --recursive > .env

# Set
$ ssmx set NAME value --path=/path/1
$ ssmx set .env --path=/path/1
$ .env > ssmx set --path=/path/1

# Remove
$ ssmx remove NAME --path=/path/1
$ ssmx rm NAME --path=/path/1

# Env
$ ssmx exec "yarn build" --path=/path/1

example: Node

import * as ssmx from 'ssmx';

await ssmx.get({paths: ['/path'], recursive: true})
ssmx.sync.get(...)

await ssmx.set('NAME', 'value', {path: '/path'})
ssmx.sync.set(...)

await ssmx.remove('NAME', {path: '/path'})
ssmx.sync.remove(...)

await ssmx.exec('yarn build', {path: '/path'})
ssmx.sync.exec(...)

✈️ / planes.studio

FAQs

Last updated on 28 Sep 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc