Skip to content

Commit

Permalink
Tflint and add example
Browse files Browse the repository at this point in the history
  • Loading branch information
strideynet committed Dec 19, 2024
1 parent f9aad72 commit 96a56f2
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,32 @@ description: This page describes the supported values of the teleport_workload_i




## Example Usage

```hcl
resource "teleport_workload_identity" "example" {
version = "v1"
metadata = {
name = "example"
}
spec = {
rules = {
allow = [
{
conditions = [{
attribute = "user.name"
equals = "noah"
}]
}
]
}
spiffe = {
id = "/my/spiffe/id/path"
hint = "my-hint"
}
}
}
```

{/* schema generated by tfplugindocs */}
## Schema
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
resource "teleport_workload_identity" "example" {
version = "v1"
metadata = {
name = "example"
}
spec = {
rules = {
allow = [
{
conditions = [{
attribute = "user.name"
equals = "noah"
}]
}
]
}
spiffe = {
id = "/my/spiffe/id/path"
hint = "my-hint"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resource "teleport_workload_identity" "test" {
{
conditions = [{
attribute = "user.name"
equals = "foo"
equals = "foo"
}]
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resource "teleport_workload_identity" "test" {
{
conditions = [{
attribute = "user.name"
equals = "foo"
equals = "foo"
}]
}
]
Expand Down

0 comments on commit 96a56f2

Please sign in to comment.