title: How can I connect to private EKS endpoint from a Lambda function
body: <p>I have an EKS cluster in a secured setup. But as part of CI/CD, I wanted to create a lambda function that when triggered can connect to the private EKS cluster and run some deployments.</p>
  
  <p>Using <a href="https://github.com/aws-samples/aws-lambda-layer-kubectl" rel="nofollow noreferrer">https://github.com/aws-samples/aws-lambda-layer-kubectl</a> I was able to set up a lambda function and this was able to connect to public EKS clusters.</p>
  
  <p>While switching to private, I added same VPC as EKS, all subnets, and SG with all VPC access.
  However, I keep getting timeout errors without any explicit logs making it very difficult to identify the issue.</p>