Reference for the teleport_scoped_role_assignment Terraform data-source
This page lists the supported values of the teleport_scoped_role_assignment data source of the
Teleport Terraform provider.
Schema
Required
metadata(Attributes) Metadata contains the resource metadata. (see below for nested schema)scope(String) Scope is the scope of the role assignment resource.spec(Attributes) Spec is the role assignment specification. (see below for nested schema)sub_kind(String) SubKind is the resource sub-kind.version(String) Version is the resource version.
Nested Schema for metadata
Required:
name(String) name is an object name.
Optional:
description(String) description is object description.labels(Map of String) labels is a set of labels.
Nested Schema for spec
Required:
assignments(Attributes List) Assignments is a list of individual role @ scope assignments (see below for nested schema)
Optional:
bot(String) The Bot to whom all contained assignments apply, as a scope-qualified name of the form<scope>::<bot-name>(e.g. "/staging/west::mybot"). Mutually exclusive withuser. When specified, assignment scopes must be equal or descendent of the scope indicated by this field.traits(Attributes List) A list of individual traits @ scope assignments (see below for nested schema)user(String) User is the user to whom all contained assignments apply. Mutually exclusive withbot.
Nested Schema for spec.assignments
Optional:
role(String) Role is the scope-qualified name of the role that is assigned by this assignment.scope(String) Scope is the scope to which the role is assigned. This must be a member/child of the scope of the [ScopedRoleAssignment] in which this assignment is contained.
Nested Schema for spec.traits
Optional:
scope(String) The scope to which the traits are assigned. This must be a member/child of the scope of the [ScopedRoleAssignment] in which this assignment is contained.traits(Attributes List) A list of traits that should be applied at this scope. (see below for nested schema)
Nested Schema for spec.traits.traits
Optional:
key(String) key is the name of the trait.values(List of String) values is the list of trait values.
Was this page helpful?