Manage Configurations
Configurations are key/value pairs, often used as settings.
Codiac stores configurations as opaque secrets. Configurations are 100% encrypted at rest.
Web
Add a config
Do you have an existing configuration you want to copy over to a new asset? Use pipes!
- Go to Asset Configuration.
-
Select the asset you want to configure.
-
Click + to add the configuration.
-
Add a value, secret, volume, or resource footprint.
-
Click Save.
This example adds a key:value pair of tree: spruce
:
Edit a config
- Go to Asset Configuration.
-
Select the asset with the configuration you want to edit.
-
Click > to expand the configuration you want to edit.
-
Edit the configuration.
-
Click Save.
This example changes the key/value pair from tree:spruce
to tree:birch
:
Copy a config
Use the following process to copy a config into a different cabinet, environment, or enterprise:
- Go to Asset Configuration.
-
Select the asset with the configuration you want to copy.
-
Grab the configuration you want to copy. Drag it in to its destination.
This example copies the key/value pair tree:birch
from the enterprise Main to the environment TODO-DEMO:
Delete a config
- Go to Asset Configuration.
-
Select the asset with the configuration you want to delete.
-
Click : Delete.
This example deletes the key/value pair tree:birch
from the enterprise Main.
CLI
Add a config
Use codiac config set
to edit or add a configuration:
codiac config set
To use this command in a script, add the --to-script
flag. This runs the command without an interactive prompt:
codiac config set --to-script
Edit a config
Use codiac config set
to edit or add a configuration:
codiac config set
To use this command in a script, add the --to-script
flag. This runs the command without an interactive prompt:
codiac config set --to-script
Copy a config
Use pipes with the codiac config settings get
command to copy configs into a different cabinet, environment, or enterprise.
For example, the command to copy the fav-color
config at the dev
environment level to the qa
cabinet (on the my-api
asset in the main
enterprise) is:
codiac config settings get --enterprise main -a my-api -e dev --setting fav-color | cod config set -a my-api -c qa
Use codiac config setings get --to-script
to help you automatically assemble the command arguments.
See Piping configs for more detailed information.
Delete a config
This section is out of date and may need revision.
Interactively
cod config delete