SDK Reference
env
The env
module provides functions for getting and setting environment variables on the host machine.
Allowed in
- build
- deploy
- destroy
- task
- trigger_sync
- policy
Usage
Load the module:
Example
API Reference
get(key, default=None)
Returns the value of the environment variable key
.
Arguments
key
: The name of the environment variabledefault
: Optional default value to return if the environment variable is not set
Returns
- Value of the environment variable if set, otherwise the default value