forked from Azure/terraform-azurerm-aks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
220 lines (180 loc) · 10.9 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
output "aci_connector_linux" {
description = "The `aci_connector_linux` block of `azurerm_kubernetes_cluster` resource."
value = try(azurerm_kubernetes_cluster.main.aci_connector_linux[0], null)
}
output "aci_connector_linux_enabled" {
description = "Has `aci_connector_linux` been enabled on the `azurerm_kubernetes_cluster` resource?"
value = can(azurerm_kubernetes_cluster.main.aci_connector_linux[0])
}
output "admin_client_certificate" {
description = "The `client_certificate` in the `azurerm_kubernetes_cluster`'s `kube_admin_config` block. Base64 encoded public certificate used by clients to authenticate to the Kubernetes cluster."
sensitive = true
value = try(azurerm_kubernetes_cluster.main.kube_admin_config[0].client_certificate, "")
}
output "admin_client_key" {
description = "The `client_key` in the `azurerm_kubernetes_cluster`'s `kube_admin_config` block. Base64 encoded private key used by clients to authenticate to the Kubernetes cluster."
sensitive = true
value = try(azurerm_kubernetes_cluster.main.kube_admin_config[0].client_key, "")
}
output "admin_cluster_ca_certificate" {
description = "The `cluster_ca_certificate` in the `azurerm_kubernetes_cluster`'s `kube_admin_config` block. Base64 encoded public CA certificate used as the root of trust for the Kubernetes cluster."
sensitive = true
value = try(azurerm_kubernetes_cluster.main.kube_admin_config[0].cluster_ca_certificate, "")
}
output "admin_host" {
description = "The `host` in the `azurerm_kubernetes_cluster`'s `kube_admin_config` block. The Kubernetes cluster server host."
sensitive = true
value = try(azurerm_kubernetes_cluster.main.kube_admin_config[0].host, "")
}
output "admin_password" {
description = "The `password` in the `azurerm_kubernetes_cluster`'s `kube_admin_config` block. A password or token used to authenticate to the Kubernetes cluster."
sensitive = true
value = try(azurerm_kubernetes_cluster.main.kube_admin_config[0].password, "")
}
output "admin_username" {
description = "The `username` in the `azurerm_kubernetes_cluster`'s `kube_admin_config` block. A username used to authenticate to the Kubernetes cluster."
sensitive = true
value = try(azurerm_kubernetes_cluster.main.kube_admin_config[0].username, "")
}
output "aks_id" {
description = "The `azurerm_kubernetes_cluster`'s id."
value = azurerm_kubernetes_cluster.main.id
}
output "aks_name" {
description = "The `aurerm_kubernetes-cluster`'s name."
value = azurerm_kubernetes_cluster.main.name
}
output "azure_policy_enabled" {
description = "The `azurerm_kubernetes_cluster`'s `azure_policy_enabled` argument. Should the Azure Policy Add-On be enabled? For more details please visit [Understand Azure Policy for Azure Kubernetes Service](https://docs.microsoft.com/en-ie/azure/governance/policy/concepts/rego-for-aks)"
value = azurerm_kubernetes_cluster.main.azure_policy_enabled
}
output "azurerm_log_analytics_workspace_id" {
description = "The id of the created Log Analytics workspace"
value = try(azurerm_log_analytics_workspace.main[0].id, null)
}
output "azurerm_log_analytics_workspace_name" {
description = "The name of the created Log Analytics workspace"
value = try(azurerm_log_analytics_workspace.main[0].name, null)
}
output "azurerm_log_analytics_workspace_primary_shared_key" {
description = "Specifies the workspace key of the log analytics workspace"
sensitive = true
value = try(azurerm_log_analytics_workspace.main[0].primary_shared_key, null)
}
output "client_certificate" {
description = "The `client_certificate` in the `azurerm_kubernetes_cluster`'s `kube_config` block. Base64 encoded public certificate used by clients to authenticate to the Kubernetes cluster."
sensitive = true
value = azurerm_kubernetes_cluster.main.kube_config[0].client_certificate
}
output "client_key" {
description = "The `client_key` in the `azurerm_kubernetes_cluster`'s `kube_config` block. Base64 encoded private key used by clients to authenticate to the Kubernetes cluster."
sensitive = true
value = azurerm_kubernetes_cluster.main.kube_config[0].client_key
}
output "cluster_ca_certificate" {
description = "The `cluster_ca_certificate` in the `azurerm_kubernetes_cluster`'s `kube_config` block. Base64 encoded public CA certificate used as the root of trust for the Kubernetes cluster."
sensitive = true
value = azurerm_kubernetes_cluster.main.kube_config[0].cluster_ca_certificate
}
output "cluster_fqdn" {
description = "The FQDN of the Azure Kubernetes Managed Cluster."
value = azurerm_kubernetes_cluster.main.fqdn
}
output "cluster_identity" {
description = "The `azurerm_kubernetes_cluster`'s `identity` block."
value = try(azurerm_kubernetes_cluster.main.identity[0], null)
}
output "cluster_portal_fqdn" {
description = "The FQDN for the Azure Portal resources when private link has been enabled, which is only resolvable inside the Virtual Network used by the Kubernetes Cluster."
value = azurerm_kubernetes_cluster.main.portal_fqdn
}
output "cluster_private_fqdn" {
description = "The FQDN for the Kubernetes Cluster when private link has been enabled, which is only resolvable inside the Virtual Network used by the Kubernetes Cluster."
value = azurerm_kubernetes_cluster.main.private_fqdn
}
output "generated_cluster_private_ssh_key" {
description = "The cluster will use this generated private key as ssh key when `var.public_ssh_key` is empty or null. Private key data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format."
sensitive = true
value = try(azurerm_kubernetes_cluster.main.linux_profile[0], null) != null ? (var.public_ssh_key == "" || var.public_ssh_key == null ? tls_private_key.ssh[0].private_key_pem : null) : null
}
output "generated_cluster_public_ssh_key" {
description = "The cluster will use this generated public key as ssh key when `var.public_ssh_key` is empty or null. The fingerprint of the public key data in OpenSSH MD5 hash format, e.g. `aa:bb:cc:....` Only available if the selected private key format is compatible, similarly to `public_key_openssh` and the [ECDSA P224 limitations](https://registry.terraform.io/providers/hashicorp/tls/latest/docs#limitations)."
value = try(azurerm_kubernetes_cluster.main.linux_profile[0], null) != null ? (var.public_ssh_key == "" || var.public_ssh_key == null ? tls_private_key.ssh[0].public_key_openssh : null) : null
}
output "host" {
description = "The `host` in the `azurerm_kubernetes_cluster`'s `kube_config` block. The Kubernetes cluster server host."
sensitive = true
value = azurerm_kubernetes_cluster.main.kube_config[0].host
}
output "http_application_routing_enabled" {
description = "The `azurerm_kubernetes_cluster`'s `http_application_routing_enabled` argument. (Optional) Should HTTP Application Routing be enabled?"
value = azurerm_kubernetes_cluster.main.http_application_routing_enabled
}
output "http_application_routing_zone_name" {
description = "The `azurerm_kubernetes_cluster`'s `http_application_routing_zone_name` argument. The Zone Name of the HTTP Application Routing."
value = azurerm_kubernetes_cluster.main.http_application_routing_zone_name != null ? azurerm_kubernetes_cluster.main.http_application_routing_zone_name : ""
}
output "ingress_application_gateway" {
description = "The `azurerm_kubernetes_cluster`'s `ingress_application_gateway` block."
value = try(azurerm_kubernetes_cluster.main.ingress_application_gateway[0], null)
}
output "ingress_application_gateway_enabled" {
description = "Has the `azurerm_kubernetes_cluster` turned on `ingress_application_gateway` block?"
value = can(azurerm_kubernetes_cluster.main.ingress_application_gateway[0])
}
output "key_vault_secrets_provider" {
description = "The `azurerm_kubernetes_cluster`'s `key_vault_secrets_provider` block."
value = try(azurerm_kubernetes_cluster.main.key_vault_secrets_provider[0], null)
}
output "key_vault_secrets_provider_enabled" {
description = "Has the `azurerm_kubernetes_cluster` turned on `key_vault_secrets_provider` block?"
value = can(azurerm_kubernetes_cluster.main.key_vault_secrets_provider[0])
}
output "kube_admin_config_raw" {
description = "The `azurerm_kubernetes_cluster`'s `kube_admin_config_raw` argument. Raw Kubernetes config for the admin account to be used by [kubectl](https://kubernetes.io/docs/reference/kubectl/overview/) and other compatible tools. This is only available when Role Based Access Control with Azure Active Directory is enabled and local accounts enabled."
sensitive = true
value = azurerm_kubernetes_cluster.main.kube_admin_config_raw
}
output "kube_config_raw" {
description = "The `azurerm_kubernetes_cluster`'s `kube_config_raw` argument. Raw Kubernetes config to be used by [kubectl](https://kubernetes.io/docs/reference/kubectl/overview/) and other compatible tools."
sensitive = true
value = azurerm_kubernetes_cluster.main.kube_config_raw
}
output "kubelet_identity" {
description = "The `azurerm_kubernetes_cluster`'s `kubelet_identity` block."
value = azurerm_kubernetes_cluster.main.kubelet_identity
}
output "location" {
description = "The `azurerm_kubernetes_cluster`'s `location` argument. (Required) The location where the Managed Kubernetes Cluster should be created."
value = azurerm_kubernetes_cluster.main.location
}
output "node_resource_group" {
description = "The auto-generated Resource Group which contains the resources for this Managed Kubernetes Cluster."
value = azurerm_kubernetes_cluster.main.node_resource_group
}
output "oidc_issuer_url" {
description = "The OIDC issuer URL that is associated with the cluster."
value = azurerm_kubernetes_cluster.main.oidc_issuer_url
}
output "oms_agent" {
description = "The `azurerm_kubernetes_cluster`'s `oms_agent` argument."
value = try(azurerm_kubernetes_cluster.main.oms_agent[0], null)
}
output "oms_agent_enabled" {
description = "Has the `azurerm_kubernetes_cluster` turned on `oms_agent` block?"
value = can(azurerm_kubernetes_cluster.main.oms_agent[0])
}
output "open_service_mesh_enabled" {
description = "(Optional) Is Open Service Mesh enabled? For more details, please visit [Open Service Mesh for AKS](https://docs.microsoft.com/azure/aks/open-service-mesh-about)."
value = azurerm_kubernetes_cluster.main.open_service_mesh_enabled
}
output "password" {
description = "The `password` in the `azurerm_kubernetes_cluster`'s `kube_config` block. A password or token used to authenticate to the Kubernetes cluster."
sensitive = true
value = azurerm_kubernetes_cluster.main.kube_config[0].password
}
output "username" {
description = "The `username` in the `azurerm_kubernetes_cluster`'s `kube_config` block. A username used to authenticate to the Kubernetes cluster."
sensitive = true
value = azurerm_kubernetes_cluster.main.kube_config[0].username
}