vault_password_policy

Provides a resource to manage Password Policies

Note this feature is available only Vault 1.5+

Example Usage

resource "vault_password_policy" "alphanumeric" {
  name = "alphanumeric"

  policy = <<EOT
    length = 20
    rule "charset" {
      charset = "abcdefghijklmnopqrstuvwxyz0123456789"
    }
  EOT
}
    length = 20
    rule "charset" {
      charset = "abcdefghijklmnopqrstuvwxyz0123456789"
    }
  EOT
}

Argument Reference

The following arguments are supported:

Attributes Reference

No additional attributes are exported by this resource.

Import

Password policies can be imported using the name, e.g.

$ terraform import vault_password_policy.alphanumeric alphanumeric