- Notifications
You must be signed in to change notification settings - Fork928
Description
What is your suggestion?
Terraform supports using atfvars
. It would be nice if you could do acoder workspaces create --tfvars=my.tfvars
.
Currently we are aiming to support yaml/json files to answer all prompts (#1377,#1541).
Supporting tfvars gets a bit complicated. For one, ideally we do not interpret/parse the tfvars, and pass it "as is" to terraform apply/plan. One solution is to support passing a newParameterDestination
typefile
, which lets writing files to the directory where terraform is run. This could possibly be a security issue though, as now users can not only set all parameters, but are writing arbitrary files to the provisionerd node :(.
Options:
- Parse the tfvars first and do some sanity checks before uploading the file. This would require us to understand the file extension type, rather than a generic "file upload param".
Why do you want this feature?
terraform apply
andcoder workspace create
become "synonymous" for sake of testing.
Are there any workarounds to get this functionality today?
Yes, useyaml
orjson
files instead.