Databases · head to head
AWS CloudFormation vs etcd

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

etcd
Databases
A distributed key-value store using Raft consensus, built for cluster coordination rather than application data.
- From
- Free
- Free plan
- Yes
The short version
- Both are free.
- Only AWS CloudFormation lists stacks and templates; only etcd lists raft consensus.
- Where AWS CloudFormation falls short: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it.
How do AWS CloudFormation and etcd differ?
AWS CloudFormation and etcd differ on pricing model and platforms. Only the attributes on which AWS CloudFormation and etcd actually diverge.
| Attribute | AWS CloudFormation | etcd |
|---|---|---|
| Pricing model | No charge for AWS resource types; extensions per handler operation | Open-source |
| Platforms | Web, 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 8 only for etcd. 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 etcd
- Raft consensus
- Linearizable reads
- Transactions
- Leases
- Watches
- MVCC revision history
- Role-based access control
- Snapshot backup and restore
What is each one used for?
AWS CloudFormation is most often brought in for recreating identical dev, staging and production environments on AWS; etcd for coordinating failover in a clustered database, as Patroni does for PostgreSQL. The jobs each tool is most often brought in to do.
AWS CloudFormation
- Recreating identical dev, staging and production environments on AWSnot etcd
- Deploying one baseline of security resources across many accounts with StackSetsnot etcd
- Serverless applications packaged with AWS SAMnot etcd
- Previewing and auditing infrastructure changes through change setsnot etcd
etcd
- Storing Kubernetes cluster state, which is what the overwhelming majority of etcd deployments are doingnot AWS CloudFormation
- Leader election and distributed locking in a home-grown scheduler or control plane, using leases and transactionsnot AWS CloudFormation
- Service discovery and dynamic configuration where readers need to be notified of changes rather than poll for themnot AWS CloudFormation
- Coordinating failover in a clustered database, as Patroni does for PostgreSQLnot AWS CloudFormation
Where do AWS CloudFormation and etcd 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
etcd
- It is sized for coordination data, not application data: the default backend quota is 2 GB and 8 GB is the documented recommended maximum, and exceeding it puts the cluster into a NOSPACE alarm where it accepts no writes until an operator compacts, defragments and clears the alarm by hand
- Every write is replicated and fsynced before acknowledgement, so cluster performance is bounded by the slowest disk in it; a member on network-attached storage with high fsync latency causes leader elections and cluster-wide latency spikes that look like network problems and are not
- Adding members increases availability but reduces write throughput, because each write must reach a larger quorum; you run three or five members for fault tolerance, and increasing capacity means faster hardware rather than more nodes
- There is no sharding and no multi-tenancy, so isolating workloads means running separate clusters, each with its own quorum, certificates, backup schedule and upgrade path, and that operational multiplication is often unexpected
- Running it yourself is a real job: periodic compaction and defragmentation, snapshot backups you have actually rehearsed restoring, and rotation of both peer and client TLS certificates, none of which happens automatically outside a managed Kubernetes service
- Losing quorum is not self-healing; recovering a cluster that has lost a majority means restoring from a snapshot and accepting that everything written since that snapshot is gone, which makes backup frequency a data-loss budget decision rather than a routine setting
How much do AWS CloudFormation and etcd cost?
AWS CloudFormation is free to use; etcd 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
etcd
FreeNo published plan breakdown. See the etcd review.
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 etcd if
- You need raft consensus.
- You want to start without paying.
- You also want linearizable reads.
Questions people ask
- Is AWS CloudFormation or etcd better?
- It depends on the job. AWS CloudFormation fits recreating identical dev, staging and production environments on AWS; etcd fits storing Kubernetes cluster state, which is what the overwhelming majority of etcd deployments are doing. AWS CloudFormation starts at Free and etcd at Free.
- Which is cheaper, AWS CloudFormation or etcd?
- AWS CloudFormation starts at Free and etcd at Free.
- Does AWS CloudFormation or etcd run on more platforms?
- AWS CloudFormation runs on Web, Linux, macOS, Windows. etcd 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 etcd is typically brought in for.
- What can AWS CloudFormation do that etcd cannot?
- AWS CloudFormation covers Stacks and templates, Change sets, Drift detection, StackSets. etcd covers Raft consensus, Linearizable reads, Transactions, Leases.
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.
etcd: Can I use etcd as an application database?
No. It is designed for metadata and coordination, with a recommended maximum store size of around 8 GB, no sharding and a write path deliberately optimised for durability rather than throughput. Application data belongs in a database built for it.
AWS CloudFormation: CloudFormation or Terraform?
CloudFormation is AWS-only with state managed by AWS; Terraform spans many providers and keeps its own state.
etcd: How many members should a cluster have?
Three for most cases, five where you need to survive two simultaneous failures. Always an odd number, because an even-sized cluster gains no additional fault tolerance while making quorum harder to reach.
AWS CloudFormation: How does CDK relate?
CDK lets you write infrastructure in a programming language and synthesises CloudFormation templates.
etcd: What happens when the store fills up?
The cluster raises a NOSPACE alarm and stops accepting writes, becoming effectively read-only. Recovery requires compacting old revisions, defragmenting each member and then explicitly disarming the alarm, all done by an operator.
etcd: Why is my etcd cluster slow or unstable?
Almost always disk latency. Because every write is fsynced before acknowledgement, slow or shared storage causes heartbeat timeouts, leader elections and cascading latency. Local SSDs with low fsync latency are effectively a requirement.
etcd: How does it compare with Consul or ZooKeeper?
All three provide consensus-backed coordination. etcd has the simplest data model and the Kubernetes ecosystem behind it; Consul bundles service discovery, health checking and a service mesh; ZooKeeper is older, JVM-based and still common under Kafka and Hadoop-era systems.
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 Redis
- AWS CloudFormation vs Valkey
- AWS CloudFormation vs DynamoDB
- AWS CloudFormation vs Timeplus
- AWS CloudFormation vs Firebase Realtime Database
- AWS CloudFormation vs Knack
- AWS CloudFormation vs BigQuery
- AWS CloudFormation vs TiDB
- AWS CloudFormation vs Turso
- AWS CloudFormation vs Dgraph
- AWS CloudFormation vs turbopuffer
- AWS CloudFormation vs Apache HBase
- AWS CloudFormation vs Fivetran HVR
- AWS CloudFormation vs Grafana Mimir
- AWS CloudFormation vs IBM Informix
- AWS CloudFormation vs Marqo
- AWS CloudFormation vs Google Cloud Spanner
- AWS CloudFormation vs IBM watsonx.data
- etcd vs Terraform
- etcd vs Spacelift
- etcd vs env zero
- etcd vs Atlantis
- etcd vs LocalStack
- etcd vs Coder
- etcd vs Tilt
- etcd vs Harness
- etcd vs Argo CD
- etcd vs Envoy
- etcd vs HCP Terraform
- etcd vs Daytona
- etcd vs GitHub
- etcd vs SonarQube
- etcd vs Sublime Text
- etcd vs Buildkite
- etcd vs GitLab CI/CD
- etcd vs Eclipse
- etcd vs Redis
- etcd vs Valkey
- etcd vs DynamoDB
- etcd vs Timeplus
- etcd vs Firebase Realtime Database
- etcd vs Knack
- etcd vs BigQuery
- etcd vs TiDB
- etcd vs Turso
- etcd vs Dgraph
- etcd vs turbopuffer
- etcd vs Apache HBase
- etcd vs Fivetran HVR
- etcd vs Grafana Mimir
- etcd vs IBM Informix
- etcd vs Marqo
- etcd vs Google Cloud Spanner
- etcd vs IBM watsonx.data
