Skip to content

Feat: load parameters from file on workspace creation #1377

Closed

Description

@spikecurtis

What is your suggestion?

Allow users to specify a file on disk for coder create command, e.g. through a flag --parameter-file

Why do you want this feature?

  1. Allows coder create to be more easily used in scripts. Today we prompt, which is hard to automate.
  2. Bug: can't use Backspace in "Specify a name for your workspace" #1226 stems from a fix that was made to allow long inputs to be entered on macOS terminal. If we revert change to fix the backspace bug, we need some workaround method that will allow long inputs on the CLI for macOS, and this parameter file fits the bill.
  3. General usability. Users that create more than one similar workspace today are forced to reenter the same data at prompts.

Are there any workarounds to get this functionality today?

Not as such, although they can enter parameters at the prompts.

Are you interested in submitting a PR for this?

Yes

Activity

  1. tjcran commented on May 11, 2022

    @tjcran

    I can see the importance of this, but I'm also hesitant to say it's a "must" for flipping the switch given the tightness of the timeline we currently have.

  2. added this to the Community MVP milestone on May 12, 2022
  3. misskniss commented on May 12, 2022

    @misskniss

    I am game to move it unless @spikecurtis thinks he can bust it out.

  4. spikecurtis commented on May 12, 2022

    @spikecurtis
    CollaboratorAuthor

    I'm only around for 4 days next sprint, so let's not push it.

  5. tjcran commented on May 12, 2022

    @tjcran

    Let's leave as Community MVP for now. I think we can also live without it by MVP launch.. but it would be a really good nice to have for launch. And this is a "should have" soon after launch, IMO. This enables a lot of good stuff.

  6. ketang commented on May 15, 2022

    @ketang
    Contributor

    Sounds like a good starter task. I'll assign it to our intern.

  7. bpmct commented on May 16, 2022

    @bpmct
    Member

    I think this bug is important because it is the only proposed solution for #1426, which means MacOS users have no way to enter long variables. It's also worth noting that .tfvars files and TF_VAR_varname are not supported in Coder at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

apiArea: HTTP API

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions