Manages OIDC Scopes in a Vault server. See the Vault documentation for more information.
resource "vault_identity_oidc_scope" "groups" {
name = "groups"
template = "{\"groups\":{{identity.entity.groups.names}}}"
description = "Vault OIDC Groups Scope"
}
The following arguments are supported:
namespace
- (Optional) The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespace
is always relative to the provider's configured namespace.
Available only for Vault Enterprise.
name
- (Required) The name of the scope. The openid
scope name is reserved.
template
- (Optional) The template string for the scope. This may be provided as escaped JSON or base64 encoded JSON.
description
- (Optional) A description of the scope.
No additional attributes are exported by this resource.
OIDC Scopes can be imported using the name
, e.g.
$ terraform import vault_identity_oidc_scope.groups groups