vault_token_auth_backend_role

Manages Token auth backend role in a Vault server. See the Vault documentation for more information.

Example Usage

resource "vault_token_auth_backend_role" "example" {
  role_name              = "my-role"
  allowed_policies       = ["dev", "test"]
  disallowed_policies    = ["default"]
  allowed_entity_aliases = ["test_entity"]
  orphan                 = true
  token_period           = "86400"
  renewable              = true
  token_explicit_max_ttl = "115200"
  path_suffix            = "path-suffix"
}

Argument Reference

The following arguments are supported:

Common Token Arguments

These arguments are common across several Authentication Token resources since Vault 1.2.

Attributes Reference

No additional attributes are exported by this resource.

Import

Token auth backend roles can be imported with auth/token/roles/ followed by the role_name, e.g.

$ terraform import vault_token_auth_backend_role.example auth/token/roles/my-role