terraform-vault-tenant/approle_auth.tf
Bertrand Lanson e4ddcb6be8
All checks were successful
development / Check commit compliance (push) Successful in 4s
pull-requests-open / Check commit compliance (pull_request) Successful in 5s
feat: create entities for each extra policies
2024-05-26 19:22:34 +02:00

18 lines
349 B
HCL

resource "vault_auth_backend" "approle" {
type = "approle"
path = "${var.tenant_prefix}/approle"
tune {
default_lease_ttl = "3600s"
max_lease_ttl = "14400s"
}
}
resource "vault_identity_group" "this" {
name = var.tenant_name
type = "internal"
metadata = {
tenant = var.tenant_name
prefix = var.tenant_prefix
}
}