» 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 {
true
}
EOT
}
» Argument Reference
The following arguments are supported:
-
name
- (Required) The name of the policy -
enforcement_level
- (Required) Enforcement level of Sentinel policy. Can be eitheradvisory
orsoft-mandatory
orhard-mandatory
-
policy
- (Required) String containing a Sentinel policy
» Attributes Reference
No additional attributes are exported by this resource.