Databases · head to head
AWS CloudFormation vs DuckDB

AWS CloudFormation
Databases
Declarative infrastructure as code for AWS, free for AWS resources
- From
- Free
- Free plan
- Yes

DuckDB
Databases
MIT-licensed analytical SQL database that runs inside your process, with no server, no dependencies and one writer at a time.
- From
- Free
- Free plan
- Yes
The short version
- Both are free.
- Only AWS CloudFormation lists stacks and templates; only DuckDB lists in-process execution.
- Where AWS CloudFormation falls short: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it.
How do AWS CloudFormation and DuckDB differ?
AWS CloudFormation and DuckDB differ on pricing model and platforms. Only the attributes on which AWS CloudFormation and DuckDB actually diverge.
| Attribute | AWS CloudFormation | DuckDB |
|---|---|---|
| Pricing model | No charge for AWS resource types; extensions per handler operation | Open-source |
| Platforms | Web, Linux, macOS, Windows | Linux, macOS, Windows, Web |
Identical on both: starting price (Free), free tier (Yes).
Not yet recorded: category for AWS CloudFormation, founded for AWS CloudFormation.
Which features does each one have?
They share no listed features; 6 appear only for AWS CloudFormation and 10 only for DuckDB. 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 CloudFormation
- Stacks and templates
- Change sets
- Drift detection
- StackSets
- Rollback
- Registry extensions
Only in DuckDB
- In-process execution
- Vectorised columnar engine
- Direct file querying
- Zero dependencies
- Larger-than-memory queries
- MIT licence
- Postgres-flavoured SQL
- Extension ecosystem
What is each one used for?
AWS CloudFormation is most often brought in for recreating identical dev, staging and production environments on AWS. The jobs each tool is most often brought in to do.
AWS CloudFormation
- Recreating identical dev, staging and production environments on AWSnot DuckDB
- Deploying one baseline of security resources across many accounts with StackSetsnot DuckDB
- Serverless applications packaged with AWS SAMnot DuckDB
- Previewing and auditing infrastructure changes through change setsnot DuckDB
DuckDB
- Transformation steps in a data pipeline that would otherwise need Spark, replaced by SQL over Parquet in a single processnot AWS CloudFormation
- Analytical queries embedded in an application or a dashboard where shipping a database server alongside it is not acceptablenot AWS CloudFormation
- Local exploration of files that are too large for a pandas dataframe but far too small to justify a warehousenot AWS CloudFormation
- Continuous integration and testing of analytical SQL, where a real engine can run in the test process without provisioning anythingnot AWS CloudFormation
Where do AWS CloudFormation and DuckDB fall short?
AWS CloudFormation's most cited limit: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
AWS CloudFormation
- It only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it
- Raw templates are verbose and hard to reuse, which is why many teams add CDK on top
- A failed update can leave a stack in a stuck state such as UPDATE_ROLLBACK_FAILED that needs manual intervention
- New AWS features sometimes arrive in CloudFormation after the console and API, so you wait or script around the gap
- Deleting a stack deletes its resources, so a mistaken delete of a stack with data needs DeletionPolicy discipline
DuckDB
- A database file accepts one read-write process at a time; other processes must open it read-only and will not see subsequent writes, so DuckDB cannot be the shared database behind several services
- There is no network protocol, authentication or user management, so exposing it to remote clients means writing and securing your own service around it
- It is built for scans and aggregations, not for many small transactions, so a workload of high-frequency single-row inserts and updates performs badly compared with SQLite or Postgres
- Storage files are backwards compatible but not forwards compatible, so a file written by a newer version cannot be read by an older one and every consumer of a shared file must be upgraded together
- Query memory settings matter: some operations still need to hold significant state, so an under-configured memory limit turns a large join or a high-cardinality aggregation into a spill-heavy query or an out-of-memory failure rather than a slow success
How much do AWS CloudFormation and DuckDB cost?
AWS CloudFormation is free to use; DuckDB is free to use. Plan by plan below, from each vendor's own pricing page.
AWS CloudFormation
Free- AWS resource typesFree
- No additional charge for using CloudFormation with AWS resources
- You pay for the resources the stack creates
- Third-party extensionsOn request
- $0.0009 per handler operation, first 1,000 per month free
- $0.00008 per second of handler duration beyond 30 seconds
DuckDB
Free- Open source (MIT licence)Free
Which should you pick?
Choose AWS CloudFormation if
- You need stacks and templates.
- You want to start without paying.
- You work on Web, Linux, macOS, Windows.
- You also want change sets.
Choose DuckDB if
- You need in-process execution.
- You want to start without paying.
- You work on Linux, macOS, Windows, Web.
- You also want vectorised columnar engine.
Questions people ask
- Is AWS CloudFormation or DuckDB better?
- It depends on the job. AWS CloudFormation fits recreating identical dev, staging and production environments on AWS; DuckDB fits transformation steps in a data pipeline that would otherwise need Spark, replaced by SQL over Parquet in a single process. AWS CloudFormation starts at Free and DuckDB at Free.
- Which is cheaper, AWS CloudFormation or DuckDB?
- AWS CloudFormation starts at Free and DuckDB at Free.
- Does AWS CloudFormation or DuckDB run on more platforms?
- AWS CloudFormation runs on Web, Linux, macOS, Windows. DuckDB runs on Linux, macOS, Windows, Web.
- Can I use AWS CloudFormation for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is AWS CloudFormation best used for?
- AWS CloudFormation is most often used for recreating identical dev, staging and production environments on aws, deploying one baseline of security resources across many accounts with stacksets, serverless applications packaged with aws sam, previewing and auditing infrastructure changes through change sets. Of those, recreating identical dev, staging and production environments on aws and deploying one baseline of security resources across many accounts with stacksets are not what DuckDB is typically brought in for.
- What can AWS CloudFormation do that DuckDB cannot?
- AWS CloudFormation covers Stacks and templates, Change sets, Drift detection, StackSets. DuckDB covers In-process execution, Vectorised columnar engine, Direct file querying, Zero dependencies.
Answered from the vendors’ own pages
AWS CloudFormation: Does CloudFormation cost money?
Not for AWS resource types. You pay for the resources it creates; third-party extensions are billed at $0.0009 per handler operation after 1,000 free.
DuckDB: Can multiple applications share one DuckDB database?
Not for writing. One process holds the database read-write; others may attach read-only and will not see later writes. Shared multi-writer access needs a different database or a table format with a catalogue.
AWS CloudFormation: CloudFormation or Terraform?
CloudFormation is AWS-only with state managed by AWS; Terraform spans many providers and keeps its own state.
DuckDB: Is it a replacement for a data warehouse?
For single-node analytical workloads up to a few hundred gigabytes it very often is. It is not a replacement when many concurrent users need a shared, governed, always-on service.
AWS CloudFormation: How does CDK relate?
CDK lets you write infrastructure in a programming language and synthesises CloudFormation templates.
DuckDB: Do I have to load data into it?
No. It queries Parquet, CSV, JSON and Arrow in place, including on object storage. Its own storage format is optional and mainly useful when you want indexes, constraints and faster repeated access.
DuckDB: What is MotherDuck's relationship to it?
MotherDuck is a separate company offering a managed and hybrid service built on the DuckDB engine. DuckDB itself remains MIT-licensed and independent of it, with the IP held by the DuckDB Foundation.
DuckDB: Is it suitable for OLTP?
No. It is designed for analytical scans. For transactional workloads with frequent small writes, SQLite or Postgres is the right tool.
Related pages
More on AWS CloudFormation
Other head to heads
- AWS CloudFormation vs Terraform
- AWS CloudFormation vs Spacelift
- AWS CloudFormation vs env zero
- AWS CloudFormation vs Atlantis
- AWS CloudFormation vs LocalStack
- AWS CloudFormation vs Coder
- AWS CloudFormation vs Tilt
- AWS CloudFormation vs Harness
- AWS CloudFormation vs Argo CD
- AWS CloudFormation vs Envoy
- AWS CloudFormation vs HCP Terraform
- AWS CloudFormation vs Daytona
- AWS CloudFormation vs GitHub
- AWS CloudFormation vs SonarQube
- AWS CloudFormation vs Sublime Text
- AWS CloudFormation vs Buildkite
- AWS CloudFormation vs GitLab CI/CD
- AWS CloudFormation vs Eclipse
- AWS CloudFormation vs ClickHouse
- AWS CloudFormation vs SingleStore
- AWS CloudFormation vs SQLite
- AWS CloudFormation vs MotherDuck
- AWS CloudFormation vs PostgreSQL
- AWS CloudFormation vs DBeaver
- AWS CloudFormation vs Apache Druid
- AWS CloudFormation vs StarRocks
- AWS CloudFormation vs OpenSearch
- AWS CloudFormation vs Firebolt
- AWS CloudFormation vs Meilisearch
- AWS CloudFormation vs Qdrant
- AWS CloudFormation vs Aiven
- AWS CloudFormation vs Apache Spark
- AWS CloudFormation vs Apache Pinot
- AWS CloudFormation vs Apache Flink
- AWS CloudFormation vs Apache Pulsar
- AWS CloudFormation vs Cassandra
- DuckDB vs Terraform
- DuckDB vs Spacelift
- DuckDB vs env zero
- DuckDB vs Atlantis
- DuckDB vs LocalStack
- DuckDB vs Coder
- DuckDB vs Tilt
- DuckDB vs Harness
- DuckDB vs Argo CD
- DuckDB vs Envoy
- DuckDB vs HCP Terraform
- DuckDB vs Daytona
- DuckDB vs GitHub
- DuckDB vs SonarQube
- DuckDB vs Sublime Text
- DuckDB vs Buildkite
- DuckDB vs GitLab CI/CD
- DuckDB vs Eclipse
- DuckDB vs ClickHouse
- DuckDB vs SingleStore
- DuckDB vs SQLite
- DuckDB vs MotherDuck
- DuckDB vs PostgreSQL
- DuckDB vs DBeaver
- DuckDB vs Apache Druid
- DuckDB vs StarRocks
- DuckDB vs OpenSearch
- DuckDB vs Firebolt
- DuckDB vs Meilisearch
- DuckDB vs Qdrant
- DuckDB vs Aiven
- DuckDB vs Apache Spark
- DuckDB vs Apache Pinot
- DuckDB vs Apache Flink
- DuckDB vs Apache Pulsar
- DuckDB vs Cassandra
