terraform-vault-tenant/outputs.tf
Bertrand Lanson 83d807d69e
All checks were successful
development / Check commit compliance (push) Successful in 5s
pull-requests-open / Check commit compliance (pull_request) Successful in 5s
fix: some more old naming things
2024-05-26 22:25:55 +02:00

53 lines
1.3 KiB
HCL

output "approle_mount" {
value = vault_auth_backend.approle
sensitive = true
description = "The approle mount for the tenant"
}
output "root_role" {
value = {
role_id = vault_approle_auth_backend_role.root.role_name
secret_id = vault_approle_auth_backend_role_secret_id.root.secret_id
}
sensitive = true
description = "The tenant root approle role"
depends_on = [
vault_approle_auth_backend_role.root,
vault_approle_auth_backend_role_secret_id.root
]
}
output "root_policy" {
value = vault_policy.root.name
sensitive = false
description = "The tenant root policy name"
depends_on = [vault_policy.root]
}
output "extra_roles" {
value = {
for key, role in vault_approle_auth_backend_role.extra :
key => {
role_id = role.role_name
secret_id = vault_approle_auth_backend_role_secret_id.extra[key].secret_id
}
}
sensitive = true
description = "The tenant extra approle roles"
depends_on = [
vault_approle_auth_backend_role.extra,
vault_approle_auth_backend_role_secret_id.extra
]
}
output "extra_role_policies" {
value = {
for key, policy in vault_policy.extra :
key => policy.name
}
sensitive = false
description = "The tenant extra role policy names"
depends_on = [vault_policy.extra]
}