-
Notifications
You must be signed in to change notification settings - Fork 10
/
outputs.tf
62 lines (54 loc) · 2.26 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
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
56
57
58
59
60
61
62
output "azurerm_resource_group_default" {
value = local.existing_resource_group == "" ? azurerm_resource_group.default[0] : null
description = "Default Azure Resource Group"
}
output "azurerm_log_analytics_workspace_container_app" {
value = azurerm_log_analytics_workspace.container_app
description = "Container App Log Analytics Workspace"
}
output "azurerm_eventhub_container_app" {
value = local.enable_event_hub ? azurerm_eventhub.container_app[0] : null
description = "Container App Event Hub"
}
output "azurerm_dns_zone_name_servers" {
value = local.enable_dns_zone ? azurerm_dns_zone.default[0].name_servers : null
description = "Name servers of the DNS Zone"
}
output "azurerm_container_registry" {
value = local.enable_container_registry ? azurerm_container_registry.acr[0] : null
description = "Container Registry"
}
output "cdn_frontdoor_dns_records" {
value = local.cdn_frontdoor_custom_domains_create_dns_records == false ? concat([
for domain in local.cdn_frontdoor_custom_domain_dns_names : {
name = trim(domain, ".") == "" ? "@" : trim(domain, ".")
type = "CNAME"
ttl = 300
value = azurerm_cdn_frontdoor_endpoint.endpoint[0].host_name
}
], local.dns_zone_domain_name != "" ? [
for domain in local.cdn_frontdoor_custom_domain_dns_names : {
name = trim(join(".", ["_dnsauth", domain]), ".")
type = "TXT"
ttl = 3600
value = azurerm_cdn_frontdoor_custom_domain.custom_domain["${domain}${local.dns_zone_domain_name}"].validation_token
}
] : []
) : null
description = "Azure Front Door DNS Records that must be created manually"
}
output "networking" {
value = local.launch_in_vnet ? {
vnet_id : local.existing_virtual_network == "" ? azurerm_virtual_network.default[0].id : null
subnet_id : azurerm_subnet.container_apps_infra_subnet[0].id
} : null
description = "IDs for various VNet resources if created"
}
output "container_fqdn" {
description = "FQDN for the Container App"
value = local.container_fqdn
}
output "container_app_managed_identity" {
description = "User-Assigned Managed Identity assigned to the Container App"
value = local.registry_use_managed_identity ? azurerm_user_assigned_identity.containerapp[0] : null
}