Skip to content
/ prpl Public

prpl is a tool running command with parameters that stored in AWS SSM Parameter Store.

License

Notifications You must be signed in to change notification settings

aereal/prpl

Repository files navigation

status PkgGoDev

prpl

prpl = parameters pull tool

prpl is a tool running command with parameters that stored in AWS SSM Parameter Store.

The parameters are exported as environment variables.

Synopsis

If you have parameters such as:

  • /my-app/staging/creds/id
  • /my-app/staging/creds/password

then run command below and get a result:

prpl -path /my-app/staging env
# CREDS_ID=<ID>
# CREDS_PASSWORD=<PASSWORD>

Environment variable named in below rules:

  • Remove -path value from full parameter path
    • prpl considers -path as a prefix and parameters can be unique without common prefix
    • environment variables names should not have environment name (such as staging) for convinience
      • parameters typically have environment in prefix
      • the app may refers environment variables such as CREDS_ID not MY_APP_STAGING_CREDS_ID
  • Replace all characters except for alphabets or numbers with underscore (_)
  • Convert characters to upper cases

Installation

go install github.com/aereal/prpl/cmd/prpl

Motivation

prpl is largely inspired by ssmwrap.

prpl have less options to take ease of use.

License

See LICENSE file.

About

prpl is a tool running command with parameters that stored in AWS SSM Parameter Store.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages