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