generated from Azure/terraform-azurerm-avm-template
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathoutputs.tf
26 lines (22 loc) · 1.16 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
output "name" {
description = "The name of the redis resource"
value = azurerm_redis_cache.this.name
}
output "private_endpoints" {
description = "A map of private endpoints. The map key is the supplied input to var.private_endpoints. The map value is the entire azurerm_private_endpoint resource."
value = var.private_endpoints_manage_dns_zone_group ? azurerm_private_endpoint.this_managed_dns_zone_groups : azurerm_private_endpoint.this_unmanaged_dns_zone_groups
}
# Module owners should include the full resource via a 'resource' output
# https://azure.github.io/Azure-Verified-Modules/specs/terraform/#id-tffr2---category-outputs---additional-terraform-outputs
output "resource" {
description = "This is the full output for the resource."
value = azurerm_redis_cache.this
}
output "resource_id" {
description = "The resource id of the redis cache resource."
value = azurerm_redis_cache.this.id
}
output "system_assigned_mi_principal_id" {
description = "The resource id for the system managed identity principal id."
value = var.managed_identities.system_assigned == true ? data.azapi_resource.this.output.identity.principalId : ""
}