If you have received the following error while trying to issue commands to
Unable to connect to the server: dial tcp: lookup
Then it may be due to your kube-config being out of date. You might just need to update the local kube-config.
How to update the local
Make sure to replace
eu-west-1 with your cluster’s region, and replace
cluster_name with the name of your EKS cluster.
How to update
kube-config from Terraform state
The above code makes use of the Terraform state’s output from when you generated the cluster.