Teleport
Reference for the teleport_dynamic_windows_desktop Terraform resource
Version preview- Older Versions
Example Usage
resource "teleport_dynamic_windows_desktop" "example" {
version = "v1"
metadata = {
name = "example"
description = "Test Windows desktop"
labels = {
"teleport.dev/origin" = "dynamic" // This label is added on Teleport side by default
}
}
spec = {
addr = "some.host.com"
non_ad = true
domain = "my.domain"
screen_size = {
width = 800
height = 600
}
}
}
Schema
Required
spec
(Attributes) Spec is the DynamicWindows host spec. (see below for nested schema)version
(String) Version is the API version used to create the resource. It must be specified. Based on this version, Teleport will apply different defaults on resource creation or deletion. It must be an integer prefixed by "v". For example:v1
Optional
metadata
(Attributes) Metadata is resource metadata (see below for nested schema)sub_kind
(String) SubKind is an optional resource sub kind, used in some resources
Nested Schema for spec
Required:
addr
(String) Addr is the address that this host can be reached at.
Optional:
domain
(String) Domain is the ActiveDirectory domain that this host belongs to.non_ad
(Boolean) NonAD marks this desktop as a standalone host that is not joined to an Active Directory domain.screen_size
(Attributes) ScreenSize specifies the size of the screen to use for sessions on this host. In most cases this should be unspecified, in which case Teleport will fill the browser window. (see below for nested schema)
Nested Schema for spec.screen_size
Optional:
height
(Number)width
(Number)
Nested Schema for metadata
Required:
name
(String) Name is an object name
Optional:
description
(String) Description is object descriptionexpires
(String) Expires is a global expiry time header can be set on any resource in the system.labels
(Map of String) Labels is a set of labels