Skip to content

During auto shutdown, Coder submits old variables which can break the ability to shutdown #7073

Closed
@elliot-graebert-skydio

Description

@elliot-graebert-skydio

I believe the repro is this:

  • Create a template with an input variable
  • Create a workspace and set the input variable to "foo"
  • Update the template (but not the workspace) to delete the input variable
  • Wait for auto-shutdown to happen

I believe you'll get an error that looks like the following:

A variable named "<X>" was assigned on the command line, but the root module does not declare a variable of that name. To use this value, add a "variable" block to the configuration.```

This ends up failing the terraform plan for the shutdown, and thus the workspace is not offline.

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