terraform-vault-tenant/outputs.tf

53 lines
1.3 KiB
Terraform
Raw Normal View History

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 = {
2024-05-26 20:24:33 +00:00
for key, role in vault_approle_auth_backend_role.extra :
key => {
role_id = role.role_name
2024-05-26 20:24:33 +00:00
secret_id = vault_approle_auth_backend_role_secret_id.extra[key].secret_id
}
}
sensitive = true
description = "The tenant extra approle roles"
depends_on = [
2024-05-26 20:24:33 +00:00
vault_approle_auth_backend_role.extra,
vault_approle_auth_backend_role_secret_id.extra
]
}
output "extra_role_policies" {
value = {
2024-05-26 20:25:55 +00:00
for key, policy in vault_policy.extra :
key => policy.name
}
sensitive = false
description = "The tenant extra role policy names"
2024-05-26 20:25:55 +00:00
depends_on = [vault_policy.extra]
}