athena-vars
Command that manages Athena variables.
Usage
athena-vars [OPTIONS] COMMAND [ARGS]...
| Option | Description |
|---|---|
| -h, –help | Show built-in help documentation. |
| -v, –verbose | Enable verbose output. |
Commands
Add
Add or update group variables.
athena-vars add [OPTIONS] <group> <vars>
| Option | Description |
|---|---|
| -j, –json-vars | Use JSON format for vars. |
| –merge | Merge specified value into existing value in Consul. |
Arguments
<group>- Variable group.<vars>- Variable and its value.
List
List group variables.
athena-vars list [OPTIONS]
| Option | Description |
|---|---|
| –show-header / -n | Show header. |
Remove
Remove group variables.
athena-vars remove [OPTIONS] <group> <vars>
Arguments
<group>- Variable group.<vars>- Comma separated list of variables to remove.
Extending
To add additional variable management commands edit vars.yml in environment playbook directory.
Examples
To add variable ‘host_user’ with value ‘ubuntu’:
athena-vars add all host_user=ubuntu
To add variable ‘host_user’ with value ‘ubuntu’ in json format:
athena-vars add --json all {"host_user":ubuntu}
To list all group variables:
athena-vars list
To remove variables ‘tag_Environment_DEV host_user’ and ‘rds_data_volume_size’:
athena-vars remove tag_Environment_DEV host_user,rds_data_volume_size