# env

The step-level `env` field adds or overrides environment variables for a single step, taking precedence over the workflow-level [env](/workflows/env).

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

Step `env` overrides workflow-level [env](/workflows/env) for matching keys. The values apply only to that step's subprocess.

This field is different from [`type: env`](/workflows/steps/type/env), which stores variables for subsequent workflow steps using a `vars` map:

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