Developer Tools · head to head
AWS CDK vs Amazon S3

AWS CDK
Developer Tools
Open source framework for defining AWS infrastructure in programming languages
- From
- Free
- Free plan
- Yes

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.
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
FreeNo published plan breakdown. See the AWS CDK review.
Amazon S3
On requestNo 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.
SourceAmazon 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.
SourceAWS 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.
SourceAmazon 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.
SourceAWS 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.
SourceAmazon 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.
SourceAWS 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.
SourceAmazon S3: Is S3 versioning on by default?
No. Versioning is available but disabled by default. Default bucket-level encryption was added in November 2017.
SourceRelated pages
Other head to heads
- AWS CDK vs Terraform
- AWS CDK vs HCP Terraform
- AWS CDK vs Atlantis
- AWS CDK vs Pants Build
- AWS CDK vs Frappe
- AWS CDK vs Eclipse
- AWS CDK vs Spacelift
- AWS CDK vs Python
- AWS CDK vs Backstage
- AWS CDK vs Jitsu
- AWS CDK vs Notepad++
- AWS CDK vs Steampipe
- AWS CDK vs iTerm2
- AWS CDK vs JFrog Artifactory
- AWS CDK vs Leafmap
- AWS CDK vs LocalStack
- AWS CDK vs OrbStack
- AWS CDK vs PhpStorm
- AWS CDK vs Google Cloud Platform
- AWS CDK vs Microsoft Azure
- AWS CDK vs Wasabi
- AWS CDK vs Rook
- AWS CDK vs Exoscale
- AWS CDK vs Google Cloud Run
- AWS CDK vs Confluent Cloud
- AWS CDK vs Scaleway
- AWS CDK vs Paperspace
- AWS CDK vs CloudAMQP
- AWS CDK vs Lium
- AWS CDK vs Grafana Cloud
- AWS CDK vs Rancher
- AWS CDK vs OVHcloud
- AWS CDK vs Northflank
- AWS CDK vs Oracle Cloud
- AWS CDK vs HAProxy
- AWS CDK vs minikube
- Amazon S3 vs Terraform
- Amazon S3 vs HCP Terraform
- Amazon S3 vs Atlantis
- Amazon S3 vs Pants Build
- Amazon S3 vs Frappe
- Amazon S3 vs Eclipse
- Amazon S3 vs Spacelift
- Amazon S3 vs Python
- Amazon S3 vs Backstage
- Amazon S3 vs Jitsu
- Amazon S3 vs Notepad++
- Amazon S3 vs Steampipe
- Amazon S3 vs iTerm2
- Amazon S3 vs JFrog Artifactory
- Amazon S3 vs Leafmap
- Amazon S3 vs LocalStack
- Amazon S3 vs OrbStack
- Amazon S3 vs PhpStorm
- Amazon S3 vs Google Cloud Platform
- Amazon S3 vs Microsoft Azure
- Amazon S3 vs Wasabi
- Amazon S3 vs Rook
- Amazon S3 vs Exoscale
- Amazon S3 vs Google Cloud Run
- Amazon S3 vs Confluent Cloud
- Amazon S3 vs Scaleway
- Amazon S3 vs Paperspace
- Amazon S3 vs CloudAMQP
- Amazon S3 vs Lium
- Amazon S3 vs Grafana Cloud
- Amazon S3 vs Rancher
- Amazon S3 vs OVHcloud
- Amazon S3 vs Northflank
- Amazon S3 vs Oracle Cloud
- Amazon S3 vs HAProxy
- Amazon S3 vs minikube
