From 7f2ad1b912b64c0a5e7cd6ca82b9df3aa71bab1d Mon Sep 17 00:00:00 2001 From: Martin Burke <66889764+burmek@users.noreply.github.com> Date: Wed, 6 Dec 2023 18:03:48 -0500 Subject: [PATCH] Add EKS cluster auth outputs --- outputs.tf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/outputs.tf b/outputs.tf index 71d5ee2..001222f 100644 --- a/outputs.tf +++ b/outputs.tf @@ -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 } \ No newline at end of file