Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Adding a new variable to terraform template breaks coder templates update #1751

Closed
@mafredri

Description

@mafredri

Steps to Reproduce

  1. Run coder template create -d examples/do-droplet-linux or another example (see feat: Add examples/templates/do-linux for Digital Ocean Droplets #1749)
  2. Add variable (see below) to main.tf
  3. Run coder template update do-droplet-linux -d examples/do-droplet-linux
  4. Observe error (see below)
variable "step3_random_var" {
  type        = string
  description = "Hello"
}

Expected

Prompt input for the new variable (if marked sensitive), otherwise just work™️.

Actual

Error:

❯ coder template update do-droplet-linux -d ~/src/coder/examples/do-droplet-linux
> Upload "~/src/coder/examples/do-droplet-linux"? (yes/no)
terraform (info):
terraform (info):
terraform (info):
job failed
Run 'coder templates update --help' for usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions