Anyone know if there's a way to populate variables in Terraform based on what the environment/workspace is? Preferably one that
- populates the var namespace (ie not an external data source),
- doesn't require a wrapper
- like
tf(){ terraform --var-file=$(get_tf_env).tfvars
- like
- takes effect by changing a terraform env/workspace, without any additional manual steps (ie steps that aren't triggered by running
terraform env)?