Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.44 KB

workspace_preset.md

File metadata and controls

53 lines (38 loc) · 1.44 KB
page_title subcategory description
coder_workspace_preset Data Source - terraform-provider-coder
Use this data source to predefine common configurations for workspaces.

coder_workspace_preset (Data Source)

Use this data source to predefine common configurations for workspaces.

Example Usage

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"
  }
}

Schema

Required

  • name (String) Name of the workspace preset.
  • parameters (Map of String) Parameters of the workspace preset.

Optional

Read-Only

  • id (String) ID of the workspace preset.

Nested Schema for prebuilds

Required:

  • instances (Number)