resource "vault_policy" "example" {
name = "dev-team"
policy = <<EOT
path "secret/my_app" {
capabilities = ["update"]
}
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 policy
policy
- (Required) String containing a Vault policy
No additional attributes are exported by this resource.
Policies can be imported using the name
, e.g.
$ terraform import vault_policy.example dev-team
Refer to the following tutorials for additional usage examples: