8000 GitHub - okkez/prmstore-exec: This is wrapper command to exec a command with ENV vars that are fetched from Amazon SSM Parameter Store.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

This is wrapper command to exec a command with ENV vars that are fetched from Amazon SSM Parameter Store.

License

Notifications You must be signed in to change notification settings

okkez/prmstore-exec

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prmstore-exec

This is wrapper command to exec a command with ENV vars that are fetched from Amazon SSM Parameter Store.

Installation

go get github.com/joker1007/prmstore-exec/cmd/prmstore-exec

Usage

Saved Parameters:

/staging/database/host = "database.mydomain.local"
/staging/database/user = "dbuser"
/staging/database/password = "password"
$ prmstore-exec --path /staging --with-clean-env -- env
DATABASE_HOST=database.mydomain.local
DATABASE_USER=dbuser
DATABASE_PASSWORD=password

unless --with-clean-env, also display system ENV vars.

Help

Usage:
  prmstore-exec [OPTIONS] -- command

Options:
      --path=PATH                            path for ssm:GetParametersByPath
      --no-recursive                         get parameters not recuvsively
      --no-omit-path-prefix                  No omit path prefix from parameter name
      --no-uppercase                         No convert parameter name to uppercase
      --with-clean-env                       No takeover OS Environment Variables
      --replace-map=OLD_SUBSTR:NEW_SUBSTR    Pattern Table for parameter name replacement

Help Options:
  -h, --help                                 Show this help message

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/joker1007/prmstore-exec.

License

The gem is available as open source under the terms of the MIT License.

About

This is wrapper command to exec a command with ENV vars that are fetched from Amazon SSM Parameter Store.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 81.4%
  • Makefile 18.6%
0