Skip to content

Files

Latest commit

 

History

History
60 lines (38 loc) · 2.3 KB

File metadata and controls

60 lines (38 loc) · 2.3 KB
page_title subcategory description
coder_parameter Data Source - terraform-provider-coder
Use this data source to configure editable options for workspaces.

coder_parameter (Data Source)

Use this data source to configure editable options for workspaces.

Schema

Required

  • name (String) The name of the parameter as it will appear in the interface. If this is changed, developers will be re-prompted for a new value.

Optional

  • default (String) A default value for the parameter.
  • description (String) Describe what this parameter does.
  • icon (String) A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icon. Use a built-in icon with data.coder_workspace.me.access_url + "/icon/<path>".
  • mutable (Boolean) Whether this value can be changed after workspace creation. This can be destructive for values like region, so use with caution!
  • option (Block List, Max: 64) Each "option" block defines a value for a user to select from. (see below for nested schema)
  • type (String) The type of this parameter. Must be one of: "number", "string", or "bool".
  • validation (Block List, Max: 1) Validate the input of a parameter. (see below for nested schema)

Read-Only

  • id (String) The ID of this resource.
  • value (String) The output value of the parameter.

Nested Schema for option

Required:

  • name (String) The display name of this value in the UI.
  • value (String) The value of this option set on the parameter if selected.

Optional:

Nested Schema for validation

Optional:

  • max (Number) The maximum of a number parameter.
  • min (Number) The minimum of a number parameter.
  • regex (String) A regex for the input parameter to match against.