From 83d807d69e0ad089a7b35ed75c361dae4724c2ee Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Sun, 26 May 2024 22:25:55 +0200 Subject: [PATCH] fix: some more old naming things --- outputs.tf | 4 ++-- root.tf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/outputs.tf b/outputs.tf index f9c022a..7d2c537 100644 --- a/outputs.tf +++ b/outputs.tf @@ -43,10 +43,10 @@ output "extra_roles" { output "extra_role_policies" { value = { - for key, policy in vault_policy.extra_policies : + for key, policy in vault_policy.extra : key => policy.name } sensitive = false description = "The tenant extra role policy names" - depends_on = [vault_policy.extra_policies] + depends_on = [vault_policy.extra] } diff --git a/root.tf b/root.tf index 245c02d..6a756cb 100644 --- a/root.tf +++ b/root.tf @@ -1,7 +1,7 @@ resource "vault_approle_auth_backend_role" "root" { backend = vault_auth_backend.approle.path - role_name = "${var.name}-admin" - token_policies = ["default", vault_policy.tenant_admin.name] + role_name = "${var.name}-root" + token_policies = ["default", vault_policy.root.name] } resource "random_uuid" "root_secret_id" {}