page_title | subcategory | description |
---|---|---|
coder_workspace_preset Data Source - terraform-provider-coder |
Use this data source to predefine common configurations for workspaces. |
Use this data source to predefine common configurations for workspaces.
provider "coder" {}
# presets can be used to predefine common configurations for workspaces
# Parameters are referenced by their name. Each parameter must be defined in the preset.
# Values defined by the preset must pass validation for the parameter.
# See the coder_parameter data source's documentation for examples of how to define
# parameters like the ones used below.
data "coder_workspace_preset" "example" {
name = "example"
parameters = {
(data.coder_parameter.example.name) = "us-central1-a"
(data.coder_parameter.ami.name) = "ami-xxxxxxxx"
}
}
name
(String) Name of the workspace preset.parameters
(Map of String) Parameters of the workspace preset.
prebuilds
(Block Set, Max: 1) Prebuilds of the workspace preset. (see below for nested schema)
id
(String) ID of the workspace preset.
Required:
instances
(Number)