Skip to main content

env

The env step type stores environment variables for the steps that follow, letting one step in a custom command or workflow compute values that later steps consume.

steps:
- name: set_region
type: env
vars:
AWS_REGION: us-east-2

- type: shell
command: echo "$AWS_REGION"

Fields

vars
Required. Map of environment variable names to values. Values support templates.

This step type is different from the step-level env field, which applies environment variables only to the current step.