terraform-vault-tenant/auth.tf
Bertrand Lanson ca19309d2a
All checks were successful
development / Check commit compliance (push) Successful in 5s
pull-requests-open / Check commit compliance (pull_request) Successful in 5s
feat: refactor module, simplify naming and create additional entities for extra roles
2024-05-26 22:14:00 +02:00

18 lines
321 B
HCL

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