I'm currently setting up a new environment in a different AWS account and I'm looking to migrate from CloudFormation to Terraform for managing my EKS cluster. My experience with DevOps and cloud engineering is pretty limited since I typically focus on full-stack development, but I'm eager to learn. I've started by importing resources from my existing environment and have successfully imported the EKS cluster, nodes, and load balancer. However, I'm facing issues with the LoadBalancer target group not connecting properly to the load balancer and nodes. I've also attempted to use AWS's EKS module but encountered a problem with it not recognizing my VPC's subnets, even though I've specified them in an array. I'd appreciate any guidance on how to get this set up correctly, especially since I have some free time during the holiday season to dive in and learn more about EKS and Terraform. Thanks in advance for your help, and happy holidays!
2 Answers
You should definitely try using the AWS Terraform module for EKS along with their VPC module. Those modules are super well-built and can save you a ton of time. I’ve been working with EKS in Terraform for over five years and found most issues come from misunderstandings of how to use the modules. Start fresh with everything in Terraform, beginning with the VPC, and you should see better results. If you still have subnet issues, feel free to share details and I can help. Happy holidays!
I recommend sticking with the AWS module for EKS. It's been a huge time-saver for me over the years. EKS has evolved a lot, and using the maintained modules means you benefit from all the updates and improvements without reinventing the wheel. If you’re having trouble with subnet recognition, just double-check your configuration—it might be a syntax issue. Also, if you’re looking to understand EKS and Kubernetes better, I'd suggest diving into some solid resources or tutorials during the holidays!

Related Questions
How To Get Your Domain Unblocked From Facebook
How To Find A String In a Directory of Files Using Linux