Creates an Identity Entity for Vault. The Identity secrets engine is the identity management solution for Vault. It internally maintains the clients who are recognized by Vault.
resource "vault_identity_entity" "test" {
name = "tester1"
policies = ["test"]
metadata = {
foo = "bar"
}
}
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) Name of the identity entity to create.
policies
- (Optional) A list of policies to apply to the entity.
metadata
- (Optional) A Map of additional metadata to associate with the user.
disabled
- (Optional) True/false Is this entity currently disabled. Defaults to false
external_policies
- (Optional) false
by default. If set to true
, this resource will ignore any policies return from Vault or specified in the resource. You can use vault_identity_entity_policies
to manage policies for this entity in a decoupled manner.
id
- The id
of the created entity.Identity entity can be imported using the id
, e.g.
$ terraform import vault_identity_entity.test "ae6f8ued-0f1a-9f6b-2915-1a2be20dc053"