eks module can generate an output kubeconfig
aws_eks_cluster resource doesn't has this feature.
Why don't add this feature?
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.