terraform-vault-tenant/approle_auth.tf

18 lines
349 B
Terraform
Raw Normal View History

resource "vault_auth_backend" "approle" {
type = "approle"
path = "${var.tenant_prefix}/approle"
tune {
default_lease_ttl = "3600s"
max_lease_ttl = "14400s"
}
}
2024-05-26 14:24:57 +00:00
resource "vault_identity_group" "this" {
name = var.tenant_name
type = "internal"
2024-05-26 14:24:57 +00:00
metadata = {
tenant = var.tenant_name
prefix = var.tenant_prefix
}
}