aws_ elasticache_ cluster cost estimation
Managed Redis or Memcached. Priced per node-hour by instance type, with no storage or request charges.
An aws_
The cost model is identical to EC2: pick a node type (cache.t4g.micro through cache.r7g.16xlarge), pick a region, and pay the hourly rate times the number of nodes. A 3-node cache.m6g.large cluster in us-east-1 costs about 3 × $0.156/hour × 730 hours = $342/month.
Redis clusters have two replication modes. A non-cluster-mode cluster has one primary plus zero or more replicas (set via num_
Memcached clusters always use multiple nodes for sharding. Each node is billed independently.
Reserved nodes (aws_
c3x reads node_
Terraform example
A minimal but realistic configuration that C3X can estimate.
resource "aws_elasticache_cluster" "session_cache" {
cluster_id = "session-cache"
engine = "redis"
node_type = "cache.m6g.large"
num_cache_nodes = 1
parameter_group_name = "default.redis7"
engine_version = "7.1"
port = 6379
}Pricing dimensions
What you actually pay for when you provision aws_.
| Dimension | Unit | What's being charged |
|---|---|---|
| Node hours | per node per hour | Hourly rate for the node type. Multiplied by num_ $0.156/hour for cache.m6g.large in us-east-1 |
| Data transfer between AZs | per GB | Cross-AZ replication traffic for Multi-AZ clusters. Usage-based. |
| Data transfer out to internet | per GB | Egress to the public internet. ElastiCache is typically accessed from EC2 in the same VPC (free). |
Optimization tips
Common ways to reduce aws_ cost without changing the workload.
Use Graviton (cache.m6g, cache.r6g) over Intel nodes
About 20%Graviton ElastiCache nodes are roughly 20% cheaper than equivalent Intel nodes (m5, r5) with similar or better performance for Redis and Memcached workloads.
Buy reserved nodes for steady-state caches
30-45%Caches rarely scale up and down. A 1-year all-upfront RI cuts on-demand cost by 30-45%. Model with purchaseOption: 'reserved' in c3x-usage.yml.
Consider ElastiCache Serverless for spiky workloads
Workload-dependentServerless bills by GB-hour of data stored and ECPU operations, not by node-hour. Cheaper for unpredictable or low-baseline workloads. Replaces provisioned clusters with cache.serverless.
Right-size the node type
30-50%ElastiCache memory utilization is a CloudWatch metric (DatabaseMemoryUsagePercentage). Nodes running below 40% memory can usually drop a size. Check CloudWatch before resizing.
FAQ
Does c3x handle ElastiCache Serverless?
Yes. ElastiCache Serverless is a separate resource type with different pricing (per GB-hour stored, per ECPU). c3x detects the serverless config and uses the right pricing model.
Is Multi-AZ replication free?
The replica node itself costs the same hourly rate as the primary. Cross-AZ replication data transfer is billed per GB but typically small for Redis.
Does c3x estimate Redis storage?
ElastiCache doesn't bill by storage size. The node type defines the memory limit; you pay for the node regardless of how much memory you use. There's no separate storage line item.
What's the difference between aws_ elasticache_ cluster and aws_ elasticache_ replication_ group?
aws_
Related resources
More AWS resources
Further reading
- AWS ElastiCache Serverless cost: pay for data stored and compute used
ElastiCache Serverless bills per GB-hour of data stored and per ElastiCache Processing Unit (ECPU) consumed, scaling to your workload with no nodes to size. It suits spiky caches; steady ones can be cheaper on nodes. Here is how it prices.
- Caching to reduce cloud cost: deflect the work you are paying for
Every cache hit is a database query, a Lambda invocation, or an origin fetch you did not pay for. Caching is one of the few levers that cuts cost and improves latency at once. Here is where to add it and how the math works.
- ElastiCache node sizing: paying for the right amount of memory
ElastiCache (Redis and Memcached) is priced per node by instance type, so node sizing and count drive the bill. Oversized memory, too many replicas, and the wrong node family are the common overspends. Here is how to size for cost.
- ElastiCache vs MemoryDB cost: when durability is worth paying for
MemoryDB costs more than ElastiCache for the same node type and adds a per-GB data-written charge ElastiCache doesn't have. Here's the price difference, the durability you're buying, and when each is the right call.
Estimate this resource in your own Terraform
Free, open source, no API key. C3X parses your Terraform and shows line-item cost for every resource, including aws_.