Softwr

Developer Tools · head to head

AWS CDK vs Amazon S3

AWS CDK logo

AWS CDK

Developer Tools

Open source framework for defining AWS infrastructure in programming languages

From
Free
Free plan
Yes
Amazon S3 logo

Amazon S3

Cloud

Amazon Web Services' pay-as-you-go object storage service

From
On request
Free plan
No

The short version

  • AWS CDK is an Apache 2.
  • AWS CDK is free; Amazon S3 prices on request.
  • Only AWS CDK lists construct Library of reusable components; only Amazon S3 lists object storage in buckets.
  • Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.
  • Where Amazon S3 falls short: billing depends on storage class, requests and transfer, so total cost is hard to predict.

How do AWS CDK and Amazon S3 differ?

AWS CDK and Amazon S3 differ on starting price (Free against On request), pricing model (Open-source against Usage-based) and free tier (Yes against No). Only the attributes on which AWS CDK and Amazon S3 actually diverge.

Attributes where AWS CDK and Amazon S3 differ
AttributeAWS CDKAmazon S3
Starting priceFreeOn request
Pricing modelOpen-sourceUsage-based
Free tierYesNo
PlatformsWindows, macOS, LinuxWeb
CategoryDeveloper ToolsCloud

Which features does each one have?

They share no listed features; 8 appear only for AWS CDK and 9 only for Amazon S3. 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 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

Only in Amazon S3

  • Object storage in buckets
  • Multiple storage classes including Glacier
  • S3 Intelligent-Tiering
  • Versioning
  • Replication
  • Encryption by default
  • Static website hosting
  • Time-limited authenticated URLs

What is each one used for?

AWS CDK is most often brought in for defining AWS infrastructure in TypeScript or Python; Amazon S3 for data lake storage for analytics. The jobs each tool is most often brought in to do.

AWS CDK

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

Amazon S3

  • Data lake storage for analyticsnot AWS CDK
  • Application and mobile app file storagenot AWS CDK
  • Long-term archives in Glacier classesnot AWS CDK
  • Static website hostingnot AWS CDK

Where do AWS CDK and Amazon S3 fall short?

AWS CDK's most cited limit: targets AWS only, so it does not provision resources on other clouds. Amazon S3's: billing depends on storage class, requests and transfer, so total cost is hard to predict. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

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

Amazon S3

  • Billing depends on storage class, requests and transfer, so total cost is hard to predict
  • Outbound internet data transfer is charged beyond the first 100 GB per month
  • Objects larger than 5 GB need multipart upload because single uploads are capped at 5 GB
  • Versioning is disabled by default and must be switched on per bucket
  • Available only on AWS; moving data elsewhere means egress and re-integration work

How much do AWS CDK and Amazon S3 cost?

AWS CDK is free to use. Plan by plan below, from each vendor's own pricing page.

AWS CDK

Free

No published plan breakdown. See the AWS CDK review.

Amazon S3

On request

No published plan breakdown. See the Amazon S3 review.

Which should you pick?

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.

Choose Amazon S3 if

  • You need object storage in buckets.
  • You also want multiple storage classes including glacier.

Questions people ask

Is AWS CDK or Amazon S3 better?
It depends on the job. AWS CDK fits defining AWS infrastructure in TypeScript or Python; Amazon S3 fits data lake storage for analytics. AWS CDK starts at Free and Amazon S3 at On request.
Which is cheaper, AWS CDK or Amazon S3?
AWS CDK has a free tier; the other does not. Paid plans start at Free for AWS CDK and On request for Amazon S3.
Does AWS CDK or Amazon S3 run on more platforms?
AWS CDK runs on Windows, macOS, Linux. Amazon S3 runs on Web.
Can I use AWS CDK for free?
Yes. AWS CDK has a free tier, so you can try it without paying. Amazon S3 starts at On request.
What is AWS CDK best used for?
AWS CDK is most often used for defining aws infrastructure in typescript or python, reusable internal infrastructure modules, serverless application stacks, testing infrastructure with unit tests. Of those, defining aws infrastructure in typescript or python and reusable internal infrastructure modules are not what Amazon S3 is typically brought in for.
What can AWS CDK do that Amazon S3 cannot?
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. Amazon S3 covers Object storage in buckets, Multiple storage classes including Glacier, S3 Intelligent-Tiering, Versioning.

Answered from the vendors’ own pages

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 S3: What is Amazon S3?

Amazon S3 is an object storage service from AWS, described as built to retrieve any amount of data from anywhere. It is used for data lakes, cloud-native applications and mobile apps.

Source
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 S3: How is S3 priced?

AWS says the cost depends on object size, storage duration and storage class, with no minimum charge. Inbound transfer from the internet is free, as are transfers between buckets in the same Region, and the first 100 GB per month out to the internet is free.

Source
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
Amazon S3: What is the maximum object size in S3?

Objects can be up to 5 TB. A single upload operation is capped at 5 GB, so larger objects use the multipart upload API.

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
Amazon S3: Is S3 versioning on by default?

No. Versioning is available but disabled by default. Default bucket-level encryption was added in November 2017.

Source
Share

Related pages

Other head to heads