-
Notifications
You must be signed in to change notification settings - Fork 1
/
output.tf
55 lines (45 loc) · 2.51 KB
/
output.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
output "container_registry_id" {
value = azurerm_container_registry.main[0].id
description = "The ID of the Container Registry"
}
output "container_registry_login_server" {
value = azurerm_container_registry.main[0].login_server
description = "The URL that can be used to log into the container registry"
}
output "container_registry_admin_username" {
value = var.admin_enabled == true ? azurerm_container_registry.main[0].admin_username : null
description = "The Username associated with the Container Registry Admin account - if the admin account is enabled."
}
output "container_registry_admin_password" {
value = var.admin_enabled == true ? azurerm_container_registry.main[0].admin_password : null
sensitive = true
description = "The Username associated with the Container Registry Admin account - if the admin account is enabled."
}
output "container_registry_identity_principal_id" {
value = azurerm_container_registry.main[0].identity[0].principal_id
description = "The Principal ID for the Service Principal associated with the Managed Service Identity of this Container Registry"
}
output "container_registry_identity_tenant_id" {
value = azurerm_container_registry.main[0].identity[0].tenant_id
description = "The Tenant ID for the Service Principal associated with the Managed Service Identity of this Container Registry"
}
output "container_registry_scope_map_id" {
value = var.scope_map != null ? [for k in azurerm_container_registry_scope_map.main : k.id] : null
description = "The ID of the Container Registry scope map"
}
output "container_registry_token_id" {
value = var.scope_map != null ? [for k in azurerm_container_registry_token.main : k.id] : null
description = "The ID of the Container Registry token"
}
output "container_registry_webhook_id" {
value = var.container_registry_webhooks != null ? [for k in azurerm_container_registry_webhook.main : k.id] : null
description = "The ID of the Container Registry Webhook"
}
output "container_registry_private_endpoint" {
value = var.enable_private_endpoint ? azurerm_private_endpoint.pep1[0].id : null
description = "The ID of the Azure Container Registry Private Endpoint"
}
output "container_registry_private_dns_zone_domain" {
value = var.existing_private_dns_zone == null && var.enable_private_endpoint ? azurerm_private_dns_zone.dnszone1[0].name : var.existing_private_dns_zone
description = "DNS zone name of Azure Container Registry Private endpoints dns name records"
}