terraform-vault-tenant/auth.tf

18 lines
321 B
Terraform
Raw Normal View History

resource "vault_auth_backend" "approle" {
type = "approle"
path = "${var.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.name
type = "internal"
2024-05-26 14:24:57 +00:00
metadata = {
tenant = var.name
prefix = var.prefix
2024-05-26 14:24:57 +00:00
}
}