TF_CLI_ARGS
and TF_CLI_ARGS_name
that only affects a specific command. In Spacelift, environment variables can be defined directly on stacks and modules, as well as on contexts attached to those. As an example, let's declare the following environment variable:terraform.tfvars
or terraform.tfvars.json
..auto.tfvars
or .auto.tfvars.json
.before_init
hooksbefore_init
steps. Example: