Softwr

Developer Tools · head to head

Amazon EKS vs AWS CDK

Amazon EKS logo

Amazon EKS

Developer Tools

Managed Kubernetes control plane on AWS, in the cloud or on your own hardware

From
$0.1/hour
Free plan
No
AWS CDK logo

AWS CDK

Developer Tools

Open source framework for defining AWS infrastructure in programming languages

From
Free
Free plan
Yes

The short version

  • AWS CDK is an Apache 2.
  • AWS CDK is free; Amazon EKS starts at $0.1/mo.
  • Only Amazon EKS lists managed control plane; only AWS CDK lists construct Library of reusable components.
  • Where Amazon EKS falls short: the real bill is dominated by worker nodes, load balancers, NAT gateways and data transfer, none of which appear in the cluster fee.
  • Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.

How do Amazon EKS and AWS CDK differ?

Amazon EKS and AWS CDK differ on starting price ($0.1/hour against Free), pricing model and free tier (No against Yes). Only the attributes on which Amazon EKS and AWS CDK actually diverge.

Attributes where Amazon EKS and AWS CDK differ
AttributeAmazon EKSAWS CDK
Starting price$0.1/hourFree
Pricing modelPer cluster per hour, plus worker nodesOpen-source
Free tierNoYes
PlatformsWeb, LinuxWindows, macOS, Linux

Not yet recorded: category for Amazon EKS.

Which features does each one have?

They share no listed features; 6 appear only for Amazon EKS and 8 only for AWS CDK. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Amazon EKS

  • Managed control plane
  • Node options
  • EKS Hybrid Nodes
  • Extended support
  • EKS Capabilities
  • IAM integration

Only in AWS CDK

  • Construct Library of reusable components
  • CDK CLI for synthesis and deployment
  • Programmatic CDK Toolkit Library
  • Support for TypeScript, JavaScript, Python, Java, C# and Go
  • Deployment through AWS CloudFormation
  • Custom and shareable constructs
  • Construct Hub registry
  • Open source under Apache 2.0

What is each one used for?

Amazon EKS is most often brought in for A platform team standardising on Kubernetes across several business units on AWS; AWS CDK for defining AWS infrastructure in TypeScript or Python. The jobs each tool is most often brought in to do.

Amazon EKS

  • A platform team standardising on Kubernetes across several business units on AWSnot AWS CDK
  • Running the same cluster tooling in the cloud and in factories or data centres through Hybrid Nodesnot AWS CDK
  • Hosting stateful or operator-driven workloads that ECS cannot expressnot AWS CDK
  • Workloads that may need to move to another cloud or to on-premises Kubernetes laternot AWS CDK

AWS CDK

  • Defining AWS infrastructure in TypeScript or Pythonnot Amazon EKS
  • Reusable internal infrastructure modulesnot Amazon EKS
  • Serverless application stacksnot Amazon EKS
  • Testing infrastructure with unit testsnot Amazon EKS
  • Standardising environments across accountsnot Amazon EKS

Where do Amazon EKS and AWS CDK fall short?

AWS CDK's most cited limit: targets AWS only, so it does not provision resources on other clouds. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Amazon EKS

  • The per cluster fee is charged whether or not a single pod runs, so organisations that create one cluster per team or environment pay for idle control planes
  • Falling out of standard support moves the control plane fee from $0.10 to $0.60 per hour, so teams that postpone upgrades are charged for the delay
  • AWS manages the control plane only; add-ons, CNI, ingress, node upgrades and CVE patching of nodes remain your responsibility, which needs dedicated Kubernetes skills
  • The real bill is dominated by worker nodes, load balancers, NAT gateways and data transfer, none of which appear in the cluster fee
  • Kubernetes API changes force an upgrade cycle roughly every 14 months, and deprecated APIs can break manifests and operators

AWS CDK

  • Targets AWS only, so it does not provision resources on other clouds
  • Deploys through CloudFormation, so its resource coverage and limits apply
  • Infrastructure written in code can be harder to review than declarative templates
  • The AWS resources it creates are billed separately at standard AWS rates

How much do Amazon EKS and AWS CDK cost?

Amazon EKS starts at $0.1/mo; AWS CDK is free to use. Plan by plan below, from each vendor's own pricing page.

Amazon EKS

$0.1/hour
  • Standard support$0.1/hour
    • Per cluster control plane fee, Kubernetes versions in their first 14 months
    • Worker nodes billed separately at EC2 or Fargate rates
  • Extended support$0.6/hour
    • Per cluster fee for versions in months 15 to 26
    • Same control plane, six times the hourly fee
  • Hybrid Nodes$0.02/hour
    • Per vCPU per hour for on-premises and edge nodes, first volume tier
    • Lower rate applies at higher volumes

AWS CDK

Free

No published plan breakdown. See the AWS CDK review.

Which should you pick?

Choose Amazon EKS if

  • You need managed control plane.
  • You work on Web, Linux.
  • You also want node options.

Choose AWS CDK if

  • You need construct library of reusable components.
  • You want to start without paying.
  • You work on Windows, macOS, Linux.
  • You also want cdk cli for synthesis and deployment.

Questions people ask

Is Amazon EKS or AWS CDK better?
It depends on the job. Amazon EKS fits a platform team standardising on Kubernetes across several business units on AWS; AWS CDK fits defining AWS infrastructure in TypeScript or Python. Amazon EKS starts at $0.1/hour and AWS CDK at Free.
Which is cheaper, Amazon EKS or AWS CDK?
AWS CDK has a free tier; the other does not. Paid plans start at $0.1/hour for Amazon EKS and Free for AWS CDK.
Does Amazon EKS or AWS CDK run on more platforms?
Amazon EKS runs on Web, Linux. AWS CDK runs on Windows, macOS, Linux.
Can I use AWS CDK for free?
Yes. AWS CDK has a free tier, so you can try it without paying. Amazon EKS starts at $0.1/hour.
What is Amazon EKS best used for?
Amazon EKS is most often used for a platform team standardising on kubernetes across several business units on aws, running the same cluster tooling in the cloud and in factories or data centres through hybrid nodes, hosting stateful or operator-driven workloads that ecs cannot express, workloads that may need to move to another cloud or to on-premises kubernetes later. Of those, a platform team standardising on kubernetes across several business units on aws and running the same cluster tooling in the cloud and in factories or data centres through hybrid nodes are not what AWS CDK is typically brought in for.
What can Amazon EKS do that AWS CDK cannot?
Amazon EKS covers Managed control plane, Node options, EKS Hybrid Nodes, Extended support. AWS CDK covers Construct Library of reusable components, CDK CLI for synthesis and deployment, Programmatic CDK Toolkit Library, Support for TypeScript, JavaScript, Python, Java, C# and Go.

Answered from the vendors’ own pages

Amazon EKS: How much does an EKS cluster cost per month?

The control plane fee is $0.10 per hour under standard support and $0.60 per hour under extended support, per the AWS pricing page. Worker nodes, storage and networking are billed separately at their own rates.

AWS CDK: Which languages does AWS CDK support?

The AWS documentation lists TypeScript, JavaScript, Python, Java, C# and .NET, and Go. Infrastructure is defined as constructs composed into stacks and apps.

Source
Amazon EKS: Is EKS cheaper than ECS?

ECS has no control plane fee, so for the same compute it costs less. EKS charges per cluster in exchange for upstream Kubernetes compatibility.

AWS CDK: How does AWS CDK deploy resources?

CDK apps are synthesised and deployed through AWS CloudFormation. The documentation states this gives predictable, repeatable deployments with rollback on error.

Source
Amazon EKS: Can EKS run on-premises?

Yes. EKS Hybrid Nodes lets you register your own servers as nodes in an EKS cluster, billed per vCPU per hour.

AWS CDK: Is AWS CDK free?

It is open source under the Apache 2.0 licence according to its GitHub repository. The AWS resources you provision with it are charged at their normal rates.

Source
AWS CDK: When was AWS CDK first released?

Wikipedia reports a developer preview announced in 2018 and general availability on 11 July 2019. CDK v2 followed in 2021.

Source
Share

Related pages

Other head to heads