summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-07-03 23:12:46 +0300
committerPaul Buetow <paul@buetow.org>2024-07-03 23:12:46 +0300
commitc65285ec170a778e97171e12257df05c0dd95869 (patch)
tree5b72c77c32c97e807a91e2668224613be9788b4e
parentcd4fec80fb930b53c73f1f3d9220fa3e6d958e6e (diff)
add update-kubeconfig command as an output
-rw-r--r--org-buetow-eks/main.tf1
-rw-r--r--org-buetow-eks/outputs.tf3
2 files changed, 3 insertions, 1 deletions
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"
+}