vault_identity_entity_policies

Manages policies for an Identity Entity for Vault. The Identity secrets engine is the identity management solution for Vault.

Example Usage

Exclusive Policies

resource "vault_identity_entity" "entity" {
  name              = "entity"
  external_policies = true
}

resource "vault_identity_entity_policies" "policies" {
  policies = [
    "default",
    "test",
  ]

  exclusive = true

  entity_id = vault_identity_entity.entity.id
}

Non-exclusive Policies

resource "vault_identity_entity" "entity" {
  name              = "entity"
  external_policies = true
}

resource "vault_identity_entity_policies" "default" {
  policies = [
    "default",
    "test",
  ]

  exclusive = false

  entity_id = vault_identity_entity.entity.id
}

resource "vault_identity_entity_policies" "others" {
  policies = [
    "others",
  ]

  exclusive = false

  entity_id = vault_identity_entity.entity.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

In addition to all arguments above, the following attributes are exported: