Skip to content

Commit

Permalink
Merge pull request #15 from comet-ml/k8s-outputs
Browse files Browse the repository at this point in the history
Add EKS cluster auth outputs
  • Loading branch information
burmek authored Dec 7, 2023
2 parents 1aedb30 + 7f2ad1b commit 3c7654f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,22 @@ output "mysql_host" {
output "configure_kubectl" {
description = "Configure kubectl: run the following command to update your kubeconfig with the newly provisioned cluster."
value = var.enable_eks ? "aws eks update-kubeconfig --region ${var.region} --name ${module.comet_eks[0].cluster_name}" : null
}

output "comet_eks_cert" {
description = "EKS cluster cert"
value = var.enable_eks ? base64decode(module.comet_eks[0].cluster_certificate_authority_data) : null
sensitive = true
}

output "comet_eks_endpoint" {
description = "EKS cluster endpoint"
value = var.enable_eks ? module.comet_eks[0].cluster_endpoint : null
sensitive = true
}

output "comet_eks_token" {
description = "EKS cluster endpoint"
value = var.enable_eks ? data.aws_eks_cluster_auth.this[0].token : null
sensitive = true
}

0 comments on commit 3c7654f

Please sign in to comment.