-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathoutputs.tf
142 lines (118 loc) · 4.2 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
output "aks_id" {
description = "AKS resource id"
value = azurerm_kubernetes_cluster.aks.id
}
output "aks_name" {
description = "Name of the AKS cluster"
value = split("/", azurerm_kubernetes_cluster.aks.id)[8]
}
output "aks_nodes_rg" {
description = "Name of the resource group in which AKS nodes are deployed"
value = azurerm_kubernetes_cluster.aks.node_resource_group
}
output "aks_nodes_pools_ids" {
description = "Ids of AKS nodes pools"
value = azurerm_kubernetes_cluster_node_pool.node_pools[*].id
}
output "aks_nodes_pools_names" {
description = "Names of AKS nodes pools"
value = azurerm_kubernetes_cluster_node_pool.node_pools[*].name
}
output "aks_kube_config_raw" {
description = "Raw kube config to be used by kubectl command"
value = azurerm_kubernetes_cluster.aks.kube_config_raw
sensitive = true
}
output "aks_kube_config" {
description = "Kube configuration of AKS Cluster"
value = azurerm_kubernetes_cluster.aks.kube_config
sensitive = true
}
output "aks_user_managed_identity" {
description = "The User Managed Identity used by the AKS cluster."
value = azurerm_user_assigned_identity.aks_user_assigned_identity
}
output "aks_kubelet_user_managed_identity" {
description = "The Kubelet User Managed Identity used by the AKS cluster."
value = azurerm_kubernetes_cluster.aks.kubelet_identity[0]
}
output "key_vault_secrets_provider_identity" {
description = "The User Managed Identity used by the Key Vault secrets provider."
value = try(azurerm_kubernetes_cluster.aks.key_vault_secrets_provider[0].secret_identity[0], null)
}
##########################
# AGIC outputs
##########################
output "agic_namespace" {
description = "Namespace used for AGIC"
value = module.appgw.namespace
}
output "application_gateway_id" {
description = "Id of the application gateway used by AKS"
value = module.appgw.application_gateway_id
}
output "application_gateway_identity_principal_id" {
description = "Id of the managed service identity of the application gateway used by AKS"
value = var.appgw_identity_enabled ? azurerm_user_assigned_identity.appgw_assigned_identity[0].principal_id : null
}
output "application_gateway_name" {
description = "Name of the application gateway used by AKS"
value = module.appgw.application_gateway_name
}
output "public_ip_id" {
description = "Id of the public ip used by AKS application gateway"
value = module.appgw.public_ip_id
}
output "public_ip_name" {
value = module.appgw.public_ip_name
description = "Name of the public ip used by AKS application gateway"
}
##########################
# AAD Pod Identity outputs
##########################
output "aad_pod_identity_namespace" {
description = "Namespace used for AAD Pod Identity"
value = module.infra.aad_pod_identity_namespace
}
output "aad_pod_identity_azure_identity" {
description = "Identity object for AAD Pod Identity"
value = module.infra.aad_pod_identity_azure_identity
}
##########################
# Cert Manager outputs
##########################
output "cert_manager_namespace" {
description = "Namespace used for Cert Manager"
value = module.certmanager.namespace
}
##########################
# Velero outputs
##########################
output "kured_namespace" {
description = "Namespace used for Kured"
value = module.kured.namespace
}
##########################
# Velero outputs
##########################
output "velero_namespace" {
description = "Namespace used for Velero"
value = module.velero.namespace
}
output "velero_storage_account" {
description = "Storage Account on which Velero data is stored."
value = module.velero.storage_account
sensitive = true
}
output "velero_storage_account_container" {
description = "Container in Storage Account on which Velero data is stored."
value = module.velero.storage_account_container
}
output "velero_identity" {
description = "Azure Identity used for Velero pods"
value = module.velero.velero_identity
}
output "oidc_issuer_url" {
description = "The URL of the OpenID Connect issuer."
value = azurerm_kubernetes_cluster.aks.oidc_issuer_url
}