Skip to content

Migrating a template to use rich parmaeters: can't be used together with legacy parameters #6615

Closed as not planned
@NiklasRosenstein

Description

@NiklasRosenstein

Hello,

I'm trying to update a template to use rich parameters. (Coder v0.19.2, TF provider v0.6.18)

I've added a data "coder_parameter" block for every non-sensitive variable and filled out legacy_variable and legacy_variable_name as per the documentation.

But when I push, I get this error:

✘ Cleaning Up [7ms]
template import provision for start: rich parameters can't be used together with legacy parameters, set the coder provider flag "feature_use_managed_variables = true" to enable managed variables
Run 'coder templates push --help' for usage.   

But according to the documentation, I should only enable feature_use_managed_variables at step 5, for the third template version. I'm only at making a first version of the three for the rich parameter migration.

I've also not been able to figure out yet how sensitive template variables would be defined with rich parameters. Would we keep using a variables ... { sensitive = true } block for that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleThis issue is like stale bread.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions