From c65285ec170a778e97171e12257df05c0dd95869 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 3 Jul 2024 23:12:46 +0300 Subject: add update-kubeconfig command as an output --- org-buetow-eks/main.tf | 1 - org-buetow-eks/outputs.tf | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/org-buetow-eks/main.tf b/org-buetow-eks/main.tf index c854b5c..b5de08e 100644 --- a/org-buetow-eks/main.tf +++ b/org-buetow-eks/main.tf @@ -16,4 +16,3 @@ provider "kubernetes" { cluster_ca_certificate = base64decode(data.aws_eks_cluster.cluster.certificate_authority.0.data) token = data.aws_eks_cluster_auth.cluster.token } - diff --git a/org-buetow-eks/outputs.tf b/org-buetow-eks/outputs.tf index 3809c82..e00c934 100644 --- a/org-buetow-eks/outputs.tf +++ b/org-buetow-eks/outputs.tf @@ -10,3 +10,6 @@ output "cluster_certificate_authority_data" { value = aws_eks_cluster.org_buetow_eks.certificate_authority.0.data } +output "update_kubeconfig_command" { + value = "aws eks update-kubeconfig --name ${aws_eks_cluster.org_buetow_eks.name} --region eu-central-1" +} -- cgit v1.2.3