Skip to main content

Set Environment Variables

Occassionally, it's necessary to set environment variables to help with troubleshooting or to modify the behavior of a command. Available in hooks and workflows, the env parameter runs a command and assigns its output to the name.

hooks:
plan:
pre:
- type: env
name: TF_LOG
cmd: ['echo', 'DEBUG']
post: []
apply:
pre:
- type: env
name: TF_LOG
cmd: ['echo', 'DEBUG']
post: []