An open API service indexing awesome lists of open source software.

https://github.com/sudolabs-io/aws-ssm-cli

CLI tool for managing environment variables inside AWS Systems Manager Parameter Store
https://github.com/sudolabs-io/aws-ssm-cli

aws cli ssm

Last synced: 5 months ago
JSON representation

CLI tool for managing environment variables inside AWS Systems Manager Parameter Store

Awesome Lists containing this project

README

          

# AWS SSM CLI

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

[npm]: https://npmjs.com/@sudolabs-io/aws-ssm-cli

![release workflow](https://github.com/sudolabs-io/aws-ssm-cli/actions/workflows/release.yml/badge.svg) [![npm](https://img.shields.io/npm/v/@sudolabs-io/aws-ssm-cli)][npm] [![npm](https://img.shields.io/npm/dm/@sudolabs-io/aws-ssm-cli)][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="///" --file=".env"
0 up-to-date
~ 0 updated
+ 2 created
```

### Pull

Pull environment variables from AWS SSM Parameter Store:

```
$ ssm pull --prefix="///"
DBNAME=postgres
DBUSER=postgres
```

Pull environment variables from AWS SSM Parameter Store as JSON:

```
$ ssm pull --prefix="///" --json
{ "DBNAME": "postgres", "DBUSER": "postgres" }
```

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

```
$ ssm pull --prefix="///" --json --group="environment_variables"
{ "environment_variables": { "DBNAME": "postgres", "DBUSER": "postgres" } }
```

### More

Show help:

```
$ ssm --help
```

Show version:

```
$ ssm --version
```