» vault_rgp_policy

Provides a resource to manage Role Governing Policy (RGP) via Sentinel.

Note this feature is available only with Vault Enterprise.

» Example Usage

resource "vault_rgp_policy" "allow-all" {
  name = "allow-all"
  enforcement_level = "soft-mandatory"

  policy = <<EOT
main = rule {

» Argument Reference

The following arguments are supported:

  • name - (Required) The name of the policy

  • enforcement_level - (Required) Enforcement level of Sentinel policy. Can be either advisory or soft-mandatory or hard-mandatory

  • policy - (Required) String containing a Sentinel policy

» Attributes Reference

No additional attributes are exported by this resource.