This resource supports the "/transform/role/{name}" Vault endpoint.
It creates or updates the role with the given name. If a role with the name does not exist, it will be created. If the role exists, it will be updated with the new attributes.
resource "vault_mount" "mount_transform" {
path = "transform"
type = "transform"
}
resource "vault_transform_role" "test" {
path = vault_mount.mount_transform.path
name = "payments"
transformations = ["ccn-fpe"]
}
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.
path
- (Required) Path to where the back-end is mounted within Vault.
name
- (Required) The name of the role.transformations
- (Optional) A comma separated string or slice of transformations to use.