-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
35 lines (30 loc) · 1009 Bytes
/
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
output "host" {
value = var.server_ip
sensitive = false
description = "Cluster Host"
}
output "port" {
value = local.port
sensitive = false
description = "Cluster Port"
}
output "config" {
value = try(ssh_sensitive_resource.kubeconfig[0].result, null)
sensitive = true
description = "Cluster Config"
}
output "client_key" {
value = try(base64decode(yamldecode(ssh_sensitive_resource.kubeconfig[0].result).users[0].user.client-key-data), null)
sensitive = true
description = "Cluster Client Key"
}
output "client_crt" {
value = try(base64decode(yamldecode(ssh_sensitive_resource.kubeconfig[0].result).users[0].user.client-certificate-data), null)
sensitive = true
description = "Cluster Client Certificate"
}
output "ca_crt" {
value = try(base64decode(yamldecode(ssh_sensitive_resource.kubeconfig[0].result).clusters[0].cluster.certificate-authority-data), null)
sensitive = true
description = "Cluster CA Certificate"
}