fix: revert using locals for role policies
All checks were successful
pull-requests-open / Check commit compliance (pull_request) Successful in 34s
development / Check commit compliance (push) Successful in 36s

This commit is contained in:
Bertrand Lanson 2024-05-26 12:45:35 +02:00
parent 9a4f2837a0
commit ba09f9e4dc
Signed by: lanson
SSH Key Fingerprint: SHA256:/nqc6HGqld/PS208F6FUOvZlUzTS0rGpNNwR5O2bQBw

View File

@ -1,11 +1,7 @@
locals {
tenant_admin_policies = ["default", "${var.tenant_name}-admin"]
}
resource "vault_approle_auth_backend_role" "tenant_admin" {
backend = var.global_approle_mount
role_name = "${var.tenant_name}-admin"
token_policies = local.tenant_admin_policies
token_policies = ["default", vault_policy.tenant_admin.name]
}
resource "random_uuid" "tenant_admin_secret_id" {}