parampiper is a tool for manage parameters across between systems/environments.
- π Single Source of Truth (SSOT). All your parameters in one place.
- π Works on a simple JSON file.
- π Support several backends (local file, Azure Blob).
brew install cdalar/tap/parampiper
curl -sLS https://www.p8r.dev/get.sh | sh
sudo install p8r /usr/local/bin/
- download windows binary from releases page
- unzip and copy p8r.exe to a location in PATH
$ p8r
a tool to manage parameters cross different environments
Usage:
p8r [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
get Get Parameter Value by Name
help Help about any command
import Import Parameters
init create a .p8r directory with the default configuration files
ls List Parameters
out Output Parameters
rm Delete Parameter
set Add/Update Parameter
version Print the version number of onctl
Flags:
-c, --config string Configuration file (default ".p8r/parampiper.yaml")
-h, --help help for p8r
Use "p8r [command] --help" for more information about a command.
Create the default configuration under .p8r/parampiper.yaml
$ p8r init
p8r environment initialized
Default configuration file is follows:
local_file:
FilePath: parampiper.json
azure_blob:
StorageAccountName: stparampiper
ContainerName: abc
BlobName: parampiper.json
- local_file
- azure_blob
Set Environment Variables PP_DATA
to one of the above.
export PP_DATA=local_file
p8r set -n key1 -v value1
will add key1
key with value value1
.
p8r rm -n key1
will delete the parameter named key1
p8r ls
NAME TYPE VALUE ATTRIBUTES INFO
key1 basic value1 0
Different ways to output parameters
p8r out -oexport > export.sh
cat export.sh
export KEY1="value1"
p8r out -otfvars > parameters.auto.tfvars
by exporting it as *auto.tfvars (tfvars files) you can directly use it inside your terraform code.