Configuration

Interpolation

The cloud configuration has capabilities to substitute configuration settings with dynamic values. Those dynamic values are configured with the syntax ${<type>:<arg1>:<arg2>:<arg n>} and the following types are available

Types

Environment variables env

replace with HOME environment variable

attribute1: "all my files are stored here: ${env:HOME}"

replace with VAR1 environment variable, fall back to foo-bar if not set

attribute2: "var1: ${env:VAR1:foo-bar}"

Pass secrets pass

If a pass secret provider is configured, the following replacements can be used

replace with secret at path some/secret/path

attribute3: "very secret: ${secret:some/secret/path}"

Debugging

A debug command is available for interactive testing of substitutions

blcks cloud debug interpolation --config-file <cloud_config> 'all my files are stored here: ${env:HOME}'