Title: Edit template variables after creation · Issue #1886 · coder/coder · GitHub
Open Graph Title: Edit template variables after creation · Issue #1886 · coder/coder
X Title: Edit template variables after creation · Issue #1886 · coder/coder
Description: What is your suggestion? If I create a template with var1=foo as a sensitive (template) variable, I have no way to update the template and change the template to var1=bar. Coder does not support reading from .tfvars files, or TF_VAR envi...
Open Graph Description: What is your suggestion? If I create a template with var1=foo as a sensitive (template) variable, I have no way to update the template and change the template to var1=bar. Coder does not support re...
X Description: What is your suggestion? If I create a template with var1=foo as a sensitive (template) variable, I have no way to update the template and change the template to var1=bar. Coder does not support re...
Opengraph URL: https://github.com/coder/coder/issues/1886
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Edit template variables after creation","articleBody":"## What is your suggestion?\r\n\r\nIf I create a template with `var1=foo` as a sensitive (template) variable, I have no way to update the template and change the template to `var1=bar`. Coder does not support reading from `.tfvars` files, or `TF_VAR` environment variables during `coder templates create` or `coder templates update`.\r\n\r\nRelated #1751, but also encompasses updating an existing variable. #1541 allows you to specify vars from a file, but does no work for updating workspaces.\r\n\r\n## Why do you want this feature?\r\n\r\nEditing template variables is a key part of iterating on a template. To name specific workflows:\r\n\r\n- patching/updating base container images for Docker and K8s workspaces\r\n- rotating/updating the API key for a cloud provider\r\n- migrating docker host for workspaces\r\n- fixing broken templates due to invalid (or dynamic) var\r\n\r\n## Are there any workarounds to get this functionality today?\r\n\r\nHardcoding (and committing) secret variables and environment information. \r\n\r\nSome type of `sed` magic to inject variables into `.tf` via CLI scripts. Yikes\r\n\r\n## Are you interested in submitting a PR for this?\r\n\r\nNo","author":{"url":"https://github.com/bpmct","@type":"Person","name":"bpmct"},"datePublished":"2022-05-29T18:50:43Z","url":"https://github.com/coder/coder/issues/1886"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ba24db4a-b617-0be9-518d-4e3ca43b414b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B306:399E4B:207AA50:2B0B1CF:6B0176AD |
| html-safe-nonce | a46f665192afee1a9c6bfd669ef3c59b455d496d18a02e7dffb77b50c8657149 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzA2OjM5OUU0QjoyMDdBQTUwOjJCMEIxQ0Y6NkIwMTc2QUQiLCJ2aXNpdG9yX2lkIjoiMTI4MDE2OTEzNzExMzMwOTkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1c36ea3ae0170b36ed90b9f8bd1ccd35c842130f36e7b0c8b3c1888ecc188384 |
| hovercard-subject-tag | issue:1251963980 |
| 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/_view_fragments/issues/show/coder/coder/1886/issue_layout |
| twitter:image | https://opengraph.githubassets.com/377c2d354cd7cf1bab5972c72d790c1b6e3a27d3e61b05b03bec9aa87344da24/coder/coder/issues/1886 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/377c2d354cd7cf1bab5972c72d790c1b6e3a27d3e61b05b03bec9aa87344da24/coder/coder/issues/1886 |
| og:image:alt | What is your suggestion? If I create a template with var1=foo as a sensitive (template) variable, I have no way to update the template and change the template to var1=bar. Coder does not support re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bpmct |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| 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