Databases · head to head
AWS CloudFormation vs Xata

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

Xata
Databases
Apache 2.0 platform for running many Postgres instances on Kubernetes, with copy-on-write branching and scale-to-zero.
- From
- Free
- Free plan
- Yes
The short version
- AWS CloudFormation is free; Xata starts at $1/mo.
- Only AWS CloudFormation lists stacks and templates; only Xata lists copy-on-write branching.
- Where AWS CloudFormation falls short: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it.
How do AWS CloudFormation and Xata differ?
AWS CloudFormation and Xata differ on pricing model and platforms. Only the attributes on which AWS CloudFormation and Xata actually diverge.
| Attribute | AWS CloudFormation | Xata |
|---|---|---|
| Pricing model | No charge for AWS resource types; extensions per handler operation | Usage-based |
| Platforms | Web, Linux, macOS, Windows | Web |
Identical on both: starting price (Free), free tier (Yes).
Not yet recorded: category for AWS CloudFormation.
Which features does each one have?
They share no listed features; 6 appear only for AWS CloudFormation and 10 only for Xata. 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 Xata
- Copy-on-write branching
- Scale-to-zero compute
- Compute autoscaling and bin-packing
- High availability with failover
- Point-in-time recovery
- Serverless driver
- pgroll migrations
- pgstream replication
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 Xata
- Deploying one baseline of security resources across many accounts with StackSetsnot Xata
- Serverless applications packaged with AWS SAMnot Xata
- Previewing and auditing infrastructure changes through change setsnot Xata
Xata
- Giving every pull request or coding agent its own branch of the production database, with real data volumes rather than a seeded fixturenot AWS CloudFormation
- Running managed-Postgres economics in your own cloud account where data residency or compliance rules out a third-party control planenot AWS CloudFormation
- Consolidating many small, mostly idle Postgres databases onto shared infrastructure where scale-to-zero and bin-packing recover the idle costnot AWS CloudFormation
- Testing a destructive migration against a copy of production without waiting for a full restore or paying for a duplicate of the storagenot AWS CloudFormation
Where do AWS CloudFormation and Xata 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
Xata
- Self-hosting means operating Kubernetes and CloudNativePG, so the Apache 2.0 licence removes the vendor bill but replaces it with a platform team, and a database platform is not something a part-time operator maintains safely
- Copy-on-write branches are cheap to create but diverge as they are written to, so a long-lived branch carrying a heavy backfill quietly accumulates real storage and the cost arrives later than the decision that caused it
- Scale-to-zero means the first connection after an idle period pays a cold start, which is invisible in a busy production database and very visible in a demo, a staging environment or a cron job that runs once an hour
- The Xata sold before 2025 was a different product, a proprietary API and SDK layered over Postgres, so tutorials, blog posts and SDK examples from that era describe something that no longer exists and existing users had to migrate
- As a managed service it competes with RDS, Aurora and Cloud SQL, and it is a much smaller company, so procurement, certification coverage and the depth of the support bench behind a 3am corruption incident are all weaker than the incumbent even though the underlying Postgres is the same
How much do AWS CloudFormation and Xata cost?
AWS CloudFormation is free to use; Xata has a free plan, with paid plans from $1/mo. 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
Xata
Free- Free TrialFree
- 14 days free
- No credit card required
- Usage-Based$1
- 1,000 branches for $1
- Scale-to-zero compute model
- Branches hibernate when idle
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 Xata if
- You need copy-on-write branching.
- You want to start without paying.
- You also want scale-to-zero compute.
Questions people ask
- Is AWS CloudFormation or Xata better?
- It depends on the job. AWS CloudFormation fits recreating identical dev, staging and production environments on AWS; Xata fits giving every pull request or coding agent its own branch of the production database, with real data volumes rather than a seeded fixture. AWS CloudFormation starts at Free and Xata at Free.
- Which is cheaper, AWS CloudFormation or Xata?
- AWS CloudFormation starts at Free and Xata at Free.
- Does AWS CloudFormation or Xata run on more platforms?
- AWS CloudFormation runs on Web, Linux, macOS, Windows. Xata runs on 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 Xata is typically brought in for.
- What can AWS CloudFormation do that Xata cannot?
- AWS CloudFormation covers Stacks and templates, Change sets, Drift detection, StackSets. Xata covers Copy-on-write branching, Scale-to-zero compute, Compute autoscaling and bin-packing, High availability with failover.
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.
Xata: Is it real Postgres or a compatible reimplementation?
Real Postgres. It runs upstream Postgres instances on Kubernetes via CloudNativePG, so extensions, the wire protocol and version upgrades behave as they do anywhere else.
AWS CloudFormation: CloudFormation or Terraform?
CloudFormation is AWS-only with state managed by AWS; Terraform spans many providers and keeps its own state.
Xata: Can I self-host the whole thing?
Yes. The platform is Apache 2.0 and designed for self-hosting a large number of Postgres instances on your own Kubernetes. Xata Cloud is the same platform run as a service.
AWS CloudFormation: How does CDK relate?
CDK lets you write infrastructure in a programming language and synthesises CloudFormation templates.
Xata: Does branching copy my data?
No. Branches are copy-on-write at the storage layer, so creating one is near-instant regardless of database size and storage is only consumed as the branch diverges from its parent.
Xata: Is this the same Xata I used a couple of years ago?
No. The earlier product was a proprietary database API with its own SDK and search layer. The current product is a Postgres platform, and material written for the old one does not apply.
Xata: What happens to a branch when the parent changes?
A branch is a point-in-time fork. Later changes on the parent are not propagated, so long-lived branches drift and need to be recreated rather than refreshed if you want current data.
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 Neon
- AWS CloudFormation vs PlanetScale
- AWS CloudFormation vs Amazon Aurora
- AWS CloudFormation vs Supabase
- AWS CloudFormation vs PostgreSQL
- AWS CloudFormation vs Nile
- AWS CloudFormation vs Trino
- AWS CloudFormation vs DuckDB
- AWS CloudFormation vs Convex
- AWS CloudFormation vs turbopuffer
- AWS CloudFormation vs Apache HBase
- AWS CloudFormation vs Privacera
- AWS CloudFormation vs RavenDB
- AWS CloudFormation vs SAP HANA
- AWS CloudFormation vs TablePlus
- AWS CloudFormation vs Tinybird
- AWS CloudFormation vs Vertica
- AWS CloudFormation vs DynamoDB
- Xata vs Terraform
- Xata vs Spacelift
- Xata vs env zero
- Xata vs Atlantis
- Xata vs LocalStack
- Xata vs Coder
- Xata vs Tilt
- Xata vs Harness
- Xata vs Argo CD
- Xata vs Envoy
- Xata vs HCP Terraform
- Xata vs Daytona
- Xata vs GitHub
- Xata vs SonarQube
- Xata vs Sublime Text
- Xata vs Buildkite
- Xata vs GitLab CI/CD
- Xata vs Eclipse
- Xata vs Neon
- Xata vs PlanetScale
- Xata vs Amazon Aurora
- Xata vs Supabase
- Xata vs PostgreSQL
- Xata vs Nile
- Xata vs Trino
- Xata vs DuckDB
- Xata vs Convex
- Xata vs turbopuffer
- Xata vs Apache HBase
- Xata vs Privacera
- Xata vs RavenDB
- Xata vs SAP HANA
- Xata vs TablePlus
- Xata vs Tinybird
- Xata vs Vertica
- Xata vs DynamoDB
