Skip to content

rich parameters: cannot specify default value with option blocks #6328

Closed
@bpmct

Description

@bpmct

The following parameter does not work

data "coder_parameter" "region" {
  name        = "Region"
  icon        = "/icon/database.svg"
  description = "These are options."
  default     = "us-east1-a"
  option {
    name        = "US Central"
    description = "Select for central!"
    value       = "us-central1-a"
    icon        = "/icon/goland.svg"
  }
  option {
    name        = "US East"
    description = "Select for east!"
    value       = "us-east1-a"
    icon        = "/icon/folder.svg"
  }
  option {
    name        = "US West"
    description = "Select for west!"
    value       = "us-west2-a"
  }
}
"default": only one of `default,option` can be specified, but `default,option` were specified.

Metadata

Metadata

Assignees

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