Skip to content

Commit

Permalink
Make version required
Browse files Browse the repository at this point in the history
  • Loading branch information
atburke committed Sep 20, 2024
1 parent 37c8b6f commit 935feb0
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ description: This page describes the supported values of the teleport_static_hos

- `metadata` (Attributes) metadata is resource metadata. (see [below for nested schema](#nested-schema-for-metadata))
- `spec` (Attributes) spec is the static host user spec. (see [below for nested schema](#nested-schema-for-spec))
- `version` (String) version is the resource version. It must be specified. Supported values are: `v2`.

### Optional

- `sub_kind` (String) sub_kind is an optional resource sub kind, used in some resources.
- `version` (String) version is the resource version. It must be specified. Supported values are: `v2`.

### Nested Schema for `metadata`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ description: This page describes the supported values of the teleport_static_hos

```hcl
resource "teleport_static_host_user" "test" {
version = "v2"
metadata = {
name = "test"
}
spec = {
matchers = [
{
node_labels = [
{
name = "foo"
values = ["bar"]
}
]
node_labels_expression = "labels.foo == \"bar\""
groups = ["foo", "bar"]
sudoers = ["abcd1234"]
uid = 1234
gid = 1234
default_shell = "/bin/bash"
}
version = "v2"
metadata = {
name = "test"
}
spec = {
matchers = [
{
node_labels = [
{
name = "foo"
values = ["bar"]
}
]
}
node_labels_expression = "labels.foo == \"bar\""
groups = ["foo", "bar"]
sudoers = ["abcd1234"]
uid = 1234
gid = 1234
default_shell = "/bin/bash"
}
]
}
}
```

Expand All @@ -44,11 +44,11 @@ resource "teleport_static_host_user" "test" {

- `metadata` (Attributes) metadata is resource metadata. (see [below for nested schema](#nested-schema-for-metadata))
- `spec` (Attributes) spec is the static host user spec. (see [below for nested schema](#nested-schema-for-spec))
- `version` (String) version is the resource version. It must be specified. Supported values are: `v2`.

### Optional

- `sub_kind` (String) sub_kind is an optional resource sub kind, used in some resources.
- `version` (String) version is the resource version. It must be specified. Supported values are: `v2`.

### Nested Schema for `metadata`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ computed_fields:

# These fields will be marked as Required: true
required_fields:
- "StaticHostUser.version"
- "StaticHostUser.metadata"
- "StaticHostUser.metadata.name"
- "StaticHostUser.spec"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 935feb0

Please sign in to comment.