A Variable describes the configuration and value of a variable in a workspace.
In Scalr there are "terraform" and "environment" variables.
- Terraform variables define values to be passed into the corresponding Terraform input variable
that is defined in the Configuration Version to be used in a run. Scalr Terraform variables
are added to the
terraform.tfvars.json file in the working directory of the workspace prior to any run.
The values passed in can be HCL structures if the hcl attribute is true.
- Environment variables define shell variables that are added to the run time environment of a workspace
using
export VAR=value. These variables can pass authentication parameters to providers
or any data required for local processing, such as via local-exec provisioners.