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.
Using https://github.com/aws-samples/aws-lambda-layer-kubectl I was able to set up a lambda function and this was able to connect to public EKS clusters.
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.