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.
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
notMY_APP_STAGING_CREDS_ID
- prpl considers
- Replace all characters except for alphabets or numbers with underscore (
_
) - Convert characters to upper cases
go install github.com/aereal/prpl/cmd/prpl
prpl is largely inspired by ssmwrap.
prpl have less options to take ease of use.
See LICENSE file.