A program for managing your SSM params as YAML files.
This program allows you to export your SSM parameters into a YAML file that represents their Path-Like naming structure and manage their values and some attributes.
This is a rewrite of a ruby gem I also authored.
-h, --help help for ssmtoyaml
--region string AWS Region to run against. (default "us-east-1")
- ssmtoyaml get - Retrieves an entire tree of your SSM param store as a YAML document.
- ssmtoyaml put - Put YAML file of parameters into SSM Parameter store.
Retrieves an entire tree of your SSM param store as a YAML document.
This command will retrieve a tree or subtree beginning at --ssm_root into a well structured YAML document for ease of editing or copying between environments.
ssmtoyaml get [flags]
-d, --decrypt Set to decrypt SecureString values.
-f, --force-overwrite Overwrite the --out-file if it exists.
-h, --help help for get
--ignore-tags Do not write _tags keys to the output file.
-o, --out-file string The file to write YAML commands out to. (default "./ssmtoyaml_out.yaml")
-r, --ssm-root string A path root to retrieve from. (default "/")
--region string AWS Region to run against. (default "us-east-1")
- ssmtoyaml - A program for managing your SSM params as YAML files.
Put YAML file of parameters into SSM Parameter store.
This command will import a YAML file into SSM Parameter store. The file should be of the following format. In this example, a parameter of the name /Application/Dev/MySetting will be created.
Application: Dev: MySetting: _type: SecureString _value: MySettingValue _key: alias/basic-data-symmetric _tags: Component: MyApp Environment: Dev BudgetCode: MYAPP
If provided, a separate YAML file can provide the tags in one place. These tags will override each _tag value in your input file. Example tag file:
Component: MyApp Environment: Dev BudgetCode: MYAPP
ssmtoyaml put [flags]
-h, --help help for put
-i, --in-file string File to import into SSM.
--no-interact Use to disable Y/N check.
--retry-limit int Limit on retries for failed parameter updates. (default 3)
-t, --tags string A file containing a YAML map of TagName: TagValue pairs to add to all parameters
--region string AWS Region to run against. (default "us-east-1")
- ssmtoyaml - A program for managing your SSM params as YAML files.