Provides a resource to manage Password Policies
Note this feature is available only Vault 1.5+
resource "vault_password_policy" "alphanumeric" {
name = "alphanumeric"
policy = <<EOT
length = 20
rule "charset" {
charset = "abcdefghijklmnopqrstuvwxyz0123456789"
}
EOT
}
length = 20
rule "charset" {
charset = "abcdefghijklmnopqrstuvwxyz0123456789"
}
EOT
}
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 password policy.
policy
- (Required) String containing a password policy.
No additional attributes are exported by this resource.
Password policies can be imported using the name
, e.g.
$ terraform import vault_password_policy.alphanumeric alphanumeric