How to expose kubeconfig file after create an EKS cluster by aws_eks_cluster with Terraform?

8/22/2021

eks module can generate an output kubeconfig

aws_eks_cluster resource doesn't has this feature.

Why don't add this feature?

-- Miantian
amazon-web-services
kubernetes
terraform

1 Answer

8/22/2021

The terraform eks module exposes that file by default, you can take a look at their files or even use their module. It's relatively easy to setup and works great. Links : eks module, I am not 100% if this is the section for it but you can take the look at their whole repo.

-- Johnny9
Source: StackOverflow