Skip to main content

env

The step-level env field adds or overrides environment variables for a single step, taking precedence over the workflow-level env.

steps:
- command: terraform apply vpc -s plat-ue2-dev --auto-approve
env:
AWS_REGION: us-east-2

Step env overrides workflow-level env for matching keys. The values apply only to that step's subprocess.

This field is different from type: env, which stores variables for subsequent workflow steps using a vars map:

steps:
- name: set_env
type: env
vars:
DEPLOY_ENV: prod