Skip to content

Commit 3c7654f

Browse files
authored
Merge pull request #15 from comet-ml/k8s-outputs
Add EKS cluster auth outputs
2 parents 1aedb30 + 7f2ad1b commit 3c7654f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

outputs.tf

+18
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,22 @@ output "mysql_host" {
2626
output "configure_kubectl" {
2727
description = "Configure kubectl: run the following command to update your kubeconfig with the newly provisioned cluster."
2828
value = var.enable_eks ? "aws eks update-kubeconfig --region ${var.region} --name ${module.comet_eks[0].cluster_name}" : null
29+
}
30+
31+
output "comet_eks_cert" {
32+
description = "EKS cluster cert"
33+
value = var.enable_eks ? base64decode(module.comet_eks[0].cluster_certificate_authority_data) : null
34+
sensitive = true
35+
}
36+
37+
output "comet_eks_endpoint" {
38+
description = "EKS cluster endpoint"
39+
value = var.enable_eks ? module.comet_eks[0].cluster_endpoint : null
40+
sensitive = true
41+
}
42+
43+
output "comet_eks_token" {
44+
description = "EKS cluster endpoint"
45+
value = var.enable_eks ? data.aws_eks_cluster_auth.this[0].token : null
46+
sensitive = true
2947
}

0 commit comments

Comments
 (0)