Don't miss out on new posts! Sign up! Also, visit the VHT Forums!
ECS vs EKS: Similar...
 
Notifications
Clear all

ECS vs EKS: Similarities and Differences

3 Posts
2 Users
0 Likes
203 Views
Brandon Lee
(@brandon-lee)
Posts: 440
Member Admin
Topic starter
 

Have you wondered what the difference is between Amazon ECS and EKS? This is a good comparison between the two.

https://kodekloud.com/blog/ecs-vs-eks/

 
Posted : 23/12/2023 10:33 pm
(@t3hbeowulf)
Posts: 23
Eminent Member
 

Life became a LOT easier for us when we switched from hand-stitched EC2-based Kubernetes clusters to EKS-based Kubernetes clusters. 
The biggest pain point we've run into so far is AWS has an auto-marching upgrade cycle and if you are not Johnny-on-the-spot keeping your clusters upgraded, they will happily do it for you. (This is fine if you're using the AWS Console or CLI to create/manage clusters but if you're deploying them with Terraform, the threat of disruption is a great motivating factor to keep things up to date.)

 
Posted : 06/01/2024 9:17 pm
Brandon Lee
(@brandon-lee)
Posts: 440
Member Admin
Topic starter
 

@t3hbeowulf Excellent insights here. I am guessing with Terraform, you have to go in and update your TF files for target versions that match the upgraded cluster versions, etc? I know I have seen that as an issue with Amazon RDS. They will upgrade the major version and will break some Terraform config expecting a different RDS version.

 
Posted : 06/01/2024 9:50 pm
(@t3hbeowulf)
Posts: 23
Eminent Member
 

It's a bit more of a mess than that. When AWS changes the cluster that is provisioned by Terraform, the TF state is diverges from the deployed configuration. Updating your TF configs isn't enough... Terraform expects to be able to use the AWS Provider to make the deployed resource match state and will fail since it cannot reconcile its state with the out-of-band upgraded cluster.
 
The "clean" resolution is to destroy and recreate the cluster. 
The "dirty" resolution is to try and import the remote resources into TF state. _This is fraught with peril._
The "right" solution is don't get into that situation in the first place. Keep things up to date. 🙃

As for RDS, yes... that happens too and if you're not careful, Terraform will destroy and recreate the DB to reconcile with state. Thankfully, importing state or taking and restoring a snapshot is less disruptive than dealing with an entire EKS cluster.

 
Posted : 06/01/2024 10:54 pm