Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/technicallyjosh/easy-params
Easy AWS SSM Parameter management via CLI
https://github.com/technicallyjosh/easy-params
Last synced: about 1 month ago
JSON representation
Easy AWS SSM Parameter management via CLI
- Host: GitHub
- URL: https://github.com/technicallyjosh/easy-params
- Owner: technicallyjosh
- License: mit
- Created: 2020-04-03T05:15:54.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-21T18:31:19.000Z (5 months ago)
- Last Synced: 2024-08-21T20:24:24.574Z (5 months ago)
- Language: Go
- Size: 168 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Release](https://img.shields.io/github/release/technicallyjosh/easy-params.svg)](https://github.com/technicallyjosh/easy-params/releases/latest)
[![Build](https://github.com/technicallyjosh/easy-params/workflows/Build/badge.svg)](https://github.com/technicallyjosh/easy-params/actions?query=workflow%3ABuild)
[![Release](https://github.com/technicallyjosh/easy-params/workflows/Release/badge.svg)](https://github.com/technicallyjosh/easy-params/actions?query=workflow%3ARelease)# Easy SSM Parameters
Simple SSM Parameter Store interactions via a CLI.
## Why?
I've been using AWS SSM Parameter store for a while now for all my applications
and the management is a nightmare. This CLI aims to simplify the management of
parameters in AWS SSM.## Installation
You can check out the [releases page](https://github.com/technicallyjosh/easy-params/releases).
### OSX
#### Homebrew
```console
$ brew tap technicallyjosh/easy-params
$ brew install easy-params
```## CLI
```console
$ easy-params
An easy AWS Parameter Store CLIUsage:
easy-params [flags]
easy-params [command]Available Commands:
diff Shows the difference recursively between 2 paths.
get A brief description of your command
help Help about any command
ls List parameters by path
migrate Migrate parameters by path
pull
put Put parameter by path
rm Remove parameter(s) by pathFlags:
--config string config file (default is $HOME/.easy-params.yaml)
-h, --help help for easy-params
--load-config load aws config from ~/.aws/config (default true)
-l, --local-time convert UTC to local time (default true)
--region string AWS region to use
--version show versionUse "easy-params [command] --help" for more information about a command.
```## Basic Usage
Right now it uses your default profile found in ~/.aws/credentials. You can change the region to use
on any command but for now it pulls from your [default] defined. This will also load ~/.aws/config
by default.## Commands
### `ls`
Lists parameters in specified path.
```console
$ easy-params ls --help
List parameters by pathUsage:
easy-params ls [flags]Flags:
-d, --decrypt decrypt "SecureString" values (default true)
-e, --env output plain .env format
-h, --help help for ls
-p, --plain plain text instead of table
-r, --recursive recursively get values based on path (default true)
-v, --values display valuesGlobal Flags:
--config string config file (default is $HOME/.easy-params.yaml)
--load-config load aws config from ~/.aws/config (default true)
-l, --local-time convert UTC to local time (default true)
--region string AWS region to use
--version show version
```### `get`
Get a single parameter by path.
```console
$ easy-params get --help
Get parameter value by pathUsage:
easy-params get [flags]Flags:
-d, --decrypt decrypt "SecureString" value (default true)
-h, --help help for getGlobal Flags:
--config string config file (default is $HOME/.easy-params.yaml)
--load-config load aws config from ~/.aws/config (default true)
-l, --local-time convert UTC to local time (default true)
--region string AWS region to use
--version show version
```### `put`
Put a parameter to the specified path.
```console
$ easy-params put --help
Put parameter by pathUsage:
easy-params put [flags]Flags:
-c, --context string context mode for setting many values.
-h, --help help for put
-o, --overwrite overwrite param if exists.
-t, --type string type of parameter. (default "SecureString")
-v, --value string value to store.Global Flags:
--config string config file (default is $HOME/.easy-params.yaml)
--load-config load aws config from ~/.aws/config (default true)
-l, --local-time convert UTC to local time (default true)
--region string AWS region to use
--version show version
```### `rm`
Remove a parameter by path. You can also remove recursively by path with the --recursive flag.
```console
$ easy-params rm --help
Remove parameter(s) by pathUsage:
easy-params rm [flags]Flags:
-h, --help help for rm
--recursive remove all children on path recursivelyGlobal Flags:
--config string config file (default is $HOME/.easy-params.yaml)
--load-config load aws config from ~/.aws/config (default true)
-l, --local-time convert UTC to local time (default true)
--region string AWS region to use
--version show version
```### `migrate`
Migrate parameters from one path to another. Supports region to region. _This command will use the
same region if `region-to` is not specified._```console
$ easy-params migrate --help
Migrate parameters by pathUsage:
easy-params migrate [destination path] [flags]Flags:
-h, --help help for migrate
--overwrite overwrite destination params
-f, --region-from string the region to migrate from
-t, --region-to string the region to migrate toGlobal Flags:
--config string config file (default is $HOME/.easy-params.yaml)
--load-config load aws config from ~/.aws/config (default true)
-l, --local-time convert UTC to local time (default true)
--region string AWS region to use
--version show version
```### `diff`
Simple diff between 2 paths. Can also diff values.
```console
$ easy-params diff --help
Shows the difference recursively between 2 paths.Usage:
easy-params diff [flags]Flags:
-d, --decrypt decrypt "SecureString" values (default true)
-h, --help help for diff
-v, --values show value diffs
-w, --width-limit int width limit of value outputGlobal Flags:
--config string config file (default is $HOME/.easy-params.yaml)
--load-config load aws config from ~/.aws/config (default true)
-l, --local-time convert UTC to local time (default true)
--region string AWS region to use
--version show version
```