mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-03 07:40:28 +08:00
* copy terraform provider * Make dependecy checker happy + use go 1.22 * Run terraform tests in the CI, add Makefile target * go mod tidy
43 lines
774 B
Plaintext
43 lines
774 B
Plaintext
# Teleport User resource
|
|
|
|
resource "teleport_user" "example" {
|
|
# Tells Terraform that the role could not be destroyed while this user exists
|
|
depends_on = [
|
|
teleport_role.example
|
|
]
|
|
|
|
metadata = {
|
|
name = "example"
|
|
description = "Example Teleport User"
|
|
|
|
expires = "2022-10-12T07:20:50Z"
|
|
|
|
labels = {
|
|
example = "yes"
|
|
}
|
|
}
|
|
|
|
spec = {
|
|
roles = ["example"]
|
|
|
|
oidc_identities = [{
|
|
connector_id = "oidc1"
|
|
username = "example"
|
|
}]
|
|
|
|
traits = {
|
|
"logins1" = ["example"]
|
|
"logins2" = ["example"]
|
|
}
|
|
|
|
github_identities = [{
|
|
connector_id = "github"
|
|
username = "example"
|
|
}]
|
|
|
|
saml_identities = [{
|
|
connector_id = "example-saml"
|
|
username = "example"
|
|
}]
|
|
}
|
|
} |