Databases · head to head
Amazon ElastiCache vs AWS CloudFormation

Amazon ElastiCache
Databases
AWS managed in-memory cache for Valkey, Redis OSS and Memcached
- From
- On request
- Free plan
- No

AWS CloudFormation
Databases
Declarative infrastructure as code for AWS, free for AWS resources
- From
- Free
- Free plan
- Yes
The short version
- Amazon ElastiCache is an AWS managed in-memory caching service compatible.
- AWS CloudFormation is free; Amazon ElastiCache starts at $0.084/mo.
- Only Amazon ElastiCache lists valkey, Redis OSS and Memcached engines; only AWS CloudFormation lists stacks and templates.
- Where Amazon ElastiCache falls short: runs only inside AWS, so it is not usable on premises or in other clouds.
- Where AWS CloudFormation falls short: it only manages AWS, so multi-cloud estates need Terraform or Pulumi alongside it.
How do Amazon ElastiCache and AWS CloudFormation differ?
Amazon ElastiCache and AWS CloudFormation differ on starting price (On request against Free), pricing model and free tier (No against Yes). Only the attributes on which Amazon ElastiCache and AWS CloudFormation actually diverge.
| Attribute | Amazon ElastiCache | AWS CloudFormation |
|---|---|---|
| Starting price | On request | Free |
| Pricing model | Usage-based | No charge for AWS resource types; extensions per handler operation |
| Free tier | No | Yes |
| Platforms | Web | Web, Linux, macOS, Windows |
Not yet recorded: category for AWS CloudFormation.
Which features does each one have?
They share no listed features; 8 appear only for Amazon ElastiCache and 6 only for AWS CloudFormation. 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 Amazon ElastiCache
- Valkey, Redis OSS and Memcached engines
- Serverless caching
- Global Datastore cross-Region replication
- Durability options
- Semantic and prompt caching for AI workloads
- Encryption at rest and in transit
- IAM access control and VPC isolation
- Reserved nodes and Savings Plans
Only in AWS CloudFormation
- Stacks and templates
- Change sets
- Drift detection
- StackSets
- Rollback
- Registry extensions
What is each one used for?
Amazon ElastiCache is most often brought in for session and page caching for web apps; AWS CloudFormation for recreating identical dev, staging and production environments on AWS. The jobs each tool is most often brought in to do.
Amazon ElastiCache
- Session and page caching for web appsnot AWS CloudFormation
- Leaderboards using sorted setsnot AWS CloudFormation
- Caching LLM prompts and semantic resultsnot AWS CloudFormation
- Reducing load on primary databasesnot AWS CloudFormation
AWS CloudFormation
- Recreating identical dev, staging and production environments on AWSnot Amazon ElastiCache
- Deploying one baseline of security resources across many accounts with StackSetsnot Amazon ElastiCache
- Serverless applications packaged with AWS SAMnot Amazon ElastiCache
- Previewing and auditing infrastructure changes through change setsnot Amazon ElastiCache
Where do Amazon ElastiCache and AWS CloudFormation fall short?
Amazon ElastiCache's most cited limit: runs only inside AWS, so it is not usable on premises or in other clouds. AWS CloudFormation's: 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.
Amazon ElastiCache
- Runs only inside AWS, so it is not usable on premises or in other clouds
- Partial hours are billed as full hours for on-demand nodes
- Redis OSS Extended Support carries an 80% premium in years 1 and 2
- Reserved node discounts are not available with Serverless
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
How much do Amazon ElastiCache and AWS CloudFormation cost?
Amazon ElastiCache starts at $0.084/mo; AWS CloudFormation is free to use. Plan by plan below, from each vendor's own pricing page.
Amazon ElastiCache
On request- Serverless Valkey data storage (per GB-hour)$0.084/hour
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
Which should you pick?
Choose Amazon ElastiCache if
- You need valkey, redis oss and memcached engines.
- You also want serverless caching.
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.
Questions people ask
- Is Amazon ElastiCache or AWS CloudFormation better?
- It depends on the job. Amazon ElastiCache fits session and page caching for web apps; AWS CloudFormation fits recreating identical dev, staging and production environments on AWS. Amazon ElastiCache starts at On request and AWS CloudFormation at Free.
- Which is cheaper, Amazon ElastiCache or AWS CloudFormation?
- AWS CloudFormation has a free tier; the other does not. Paid plans start at On request for Amazon ElastiCache and Free for AWS CloudFormation.
- Does Amazon ElastiCache or AWS CloudFormation run on more platforms?
- Amazon ElastiCache runs on Web. AWS CloudFormation runs on Web, Linux, macOS, Windows.
- Can I use AWS CloudFormation for free?
- Yes. AWS CloudFormation has a free tier, so you can try it without paying. Amazon ElastiCache starts at On request.
- What is Amazon ElastiCache best used for?
- Amazon ElastiCache is most often used for session and page caching for web apps, leaderboards using sorted sets, caching llm prompts and semantic results, reducing load on primary databases. Of those, session and page caching for web apps and leaderboards using sorted sets are not what AWS CloudFormation is typically brought in for.
- What can Amazon ElastiCache do that AWS CloudFormation cannot?
- Amazon ElastiCache covers Valkey, Redis OSS and Memcached engines, Serverless caching, Global Datastore cross-Region replication, Durability options. AWS CloudFormation covers Stacks and templates, Change sets, Drift detection, StackSets.
Answered from the vendors’ own pages
Amazon ElastiCache: Which engines does ElastiCache support?
It supports Valkey, Redis OSS and Memcached.
SourceAWS 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.
Amazon ElastiCache: How is ElastiCache priced?
Options are on-demand nodes billed per node-hour, serverless billed by GB-hours of data and ECPUs, Database Savings Plans, and reserved nodes with 1 or 3 year terms. There is no minimum fee for on-demand or serverless.
SourceAWS CloudFormation: CloudFormation or Terraform?
CloudFormation is AWS-only with state managed by AWS; Terraform spans many providers and keeps its own state.
Amazon ElastiCache: Is there a free tier?
For accounts created before 15 July 2025, 750 hours a month of cache.t3.micro for up to 12 months. Newer accounts choose a Free or Paid Plan that includes 100 dollars in credits.
SourceAWS CloudFormation: How does CDK relate?
CDK lets you write infrastructure in a programming language and synthesises CloudFormation templates.
Amazon ElastiCache: When did it launch?
ElastiCache launched on 22 August 2011 with Memcached, adding Redis in September 2013.
SourceRelated pages
More on Amazon ElastiCache
More on AWS CloudFormation
Other head to heads
- Amazon ElastiCache vs Valkey
- Amazon ElastiCache vs Memcached
- Amazon ElastiCache vs Redis
- Amazon ElastiCache vs Dragonfly
- Amazon ElastiCache vs SAP HANA
- Amazon ElastiCache vs Apache Ignite
- Amazon ElastiCache vs Exasol
- Amazon ElastiCache vs Readyset
- Amazon ElastiCache vs SingleStore
- Amazon ElastiCache vs Oracle Autonomous AI Database
- Amazon ElastiCache vs PlanetScale
- Amazon ElastiCache vs Neon
- Amazon ElastiCache vs etcd
- Amazon ElastiCache vs Firebird
- Amazon ElastiCache vs Fivetran HVR
- Amazon ElastiCache vs Google Cloud Spanner
- Amazon ElastiCache vs Grafana Mimir
- Amazon ElastiCache vs IBM Informix
- Amazon ElastiCache vs Terraform
- Amazon ElastiCache vs Spacelift
- Amazon ElastiCache vs env zero
- Amazon ElastiCache vs Atlantis
- Amazon ElastiCache vs LocalStack
- Amazon ElastiCache vs Coder
- Amazon ElastiCache vs Tilt
- Amazon ElastiCache vs Harness
- Amazon ElastiCache vs Argo CD
- Amazon ElastiCache vs Envoy
- Amazon ElastiCache vs HCP Terraform
- Amazon ElastiCache vs Daytona
- Amazon ElastiCache vs GitHub
- Amazon ElastiCache vs SonarQube
- Amazon ElastiCache vs Sublime Text
- Amazon ElastiCache vs Buildkite
- Amazon ElastiCache vs GitLab CI/CD
- Amazon ElastiCache vs Eclipse
- AWS CloudFormation vs Valkey
- AWS CloudFormation vs Memcached
- AWS CloudFormation vs Redis
- AWS CloudFormation vs Dragonfly
- AWS CloudFormation vs SAP HANA
- AWS CloudFormation vs Apache Ignite
- AWS CloudFormation vs Exasol
- AWS CloudFormation vs Readyset
- AWS CloudFormation vs SingleStore
- AWS CloudFormation vs Oracle Autonomous AI Database
- AWS CloudFormation vs PlanetScale
- AWS CloudFormation vs Neon
- AWS CloudFormation vs etcd
- AWS CloudFormation vs Firebird
- AWS CloudFormation vs Fivetran HVR
- AWS CloudFormation vs Google Cloud Spanner
- AWS CloudFormation vs Grafana Mimir
- AWS CloudFormation vs IBM Informix
- 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
