Title: Support passing `tfvars` files for terraform based provisioner workspaces · Issue #1590 · coder/coder · GitHub
Open Graph Title: Support passing `tfvars` files for terraform based provisioner workspaces · Issue #1590 · coder/coder
X Title: Support passing `tfvars` files for terraform based provisioner workspaces · Issue #1590 · coder/coder
Description: Secure environments for developers and their agents - Support passing `tfvars` files for terraform based provisioner workspaces · Issue #1590 · coder/coder
Open Graph Description: Secure environments for developers and their agents - Support passing `tfvars` files for terraform based provisioner workspaces · Issue #1590 · coder/coder
X Description: Secure environments for developers and their agents - Support passing `tfvars` files for terraform based provisioner workspaces · Issue #1590 · coder/coder
Opengraph URL: https://github.com/coder/coder
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support passing `tfvars` files for terraform based provisioner workspaces","articleBody":"## What is your suggestion?\r\n\r\nTerraform supports using a [`tfvars`](https://www.terraform.io/language/values/variables#variable-definitions-tfvars-files). It would be nice if you could do a `coder workspaces create --tfvars=my.tfvars`.\r\n\r\nCurrently we are aiming to support yaml/json files to answer all prompts (#1377, #1541). \r\n\r\nSupporting 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 new `ParameterDestination` type `file`, 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 :(. \r\n\r\nOptions:\r\n- 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\".\r\n\r\n## Why do you want this feature?\r\n\r\n`terraform apply` and `coder workspace create` become \"synonymous\" for sake of testing.\r\n\r\n## Are there any workarounds to get this functionality today?\r\n\r\nYes, use `yaml` or `json` files instead.\r\n\r\n## Are you interested in submitting a PR for this?\r\n","author":{"url":"https://github.com/Emyrk","@type":"Person","name":"Emyrk"},"datePublished":"2022-05-19T15:14:38Z","url":"https://github.com/coder/coder/issues/1590"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:05bc1e75-5f64-159e-4448-1471b6fce74b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F24:2F543F:AE47E:E9399:6B01819A |
| html-safe-nonce | 7e93918d11f1e7521f5941e8327befeb996d9356534b531c24eab1d945afb94f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjI0OjJGNTQzRjpBRTQ3RTpFOTM5OTo2QjAxODE5QSIsInZpc2l0b3JfaWQiOiIzNDczNzE4MTM1NzQ2NTYwNDEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 47606913cfa50887e8b9ea7f8aae33c94cc97cc1749d2ba6dcac4959dddb2e2d |
| hovercard-subject-tag | repository:440752086 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/coder/coder/issues/1590 |
| twitter:image | https://repository-images.githubusercontent.com/440752086/eb56ccad-14f2-4c61-a024-20d1e77296c1 |
| twitter:card | summary_large_image |
| og:image | https://repository-images.githubusercontent.com/440752086/eb56ccad-14f2-4c61-a024-20d1e77296c1 |
| og:image:alt | Secure environments for developers and their agents - Support passing `tfvars` files for terraform based provisioner workspaces · Issue #1590 · coder/coder |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width