page_title | subcategory | description |
---|---|---|
coder_parameter Data Source - terraform-provider-coder |
Use this data source to configure editable options for workspaces. |
Use this data source to configure editable options for workspaces.
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.
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 withdata.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)
id
(String) The ID of this resource.value
(String) The output value of the parameter.
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:
description
(String) Describe what selecting this value 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 withdata.coder_workspace.me.access_url + "/icon/<path>"
.
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.