aws_ elasticache_ replication_ group cost estimation
A Redis (or Valkey) replication group with primary and replica nodes, optionally cluster-mode sharded. Priced per node-hour by node type across all shards and replicas.
An aws_
Node count is the thing people get wrong when estimating. In cluster mode, the total is num_
The node rate depends on the node type family. The r6g and r7g (Graviton) families give the best price-performance for memory-heavy Redis workloads; the t4g family is cheapest for small or bursty caches. c3x prices the on-demand node rate at 730 hours/month. Backup storage beyond one free snapshot per node is a usage-based dimension modelled separately.
Terraform example
A minimal but realistic configuration that C3X can estimate.
resource "aws_elasticache_replication_group" "sessions" {
replication_group_id = "sessions"
description = "Session store"
node_type = "cache.r6g.large"
engine = "redis"
num_node_groups = 3
replicas_per_node_group = 1
automatic_failover_enabled = true
multi_az_enabled = true
}Pricing dimensions
What you actually pay for when you provision aws_.
| Dimension | Unit | What's being charged |
|---|---|---|
| Cache node hours | per node-hour | On-demand rate for the node type, billed for every node in the group. Total nodes = num_ $0.204/hour for cache.r6g.large in us-east-1 |
| Backup storage | per GB-month | Each node includes one free snapshot. Storage beyond that bills per GB-month. Usage-based; set snapshot retention and size in c3x-usage.yml. $0.085/GB-month |
| Data transfer (cross-AZ) | per GB | Replication traffic between AZs in a Multi-AZ group can incur cross-AZ transfer charges. Usage-based. |
Sample C3X output
Example output from c3x estimate for the Terraform above (6 nodes):
aws_elasticache_replication_group.sessions
└─ Cache nodes (cache.r6g.large x 6) 4,380 node-hours $893.52
OVERALL TOTAL $893.52Optimization tips
Common ways to reduce aws_ cost without changing the workload.
Use Graviton (r7g/r6g) over Intel (r5/r6)
10-20%Graviton node families deliver better price-performance for Redis at a lower hourly rate than the equivalent Intel family. For most workloads r7g is a strict upgrade over r5.
Right-size replica count
Up to 33%Each replica is a full node at full price. Two replicas per shard doubles the replica cost; one is usually enough for HA. Only add a second replica if you need read scaling or extra failover headroom.
Buy reserved nodes for steady caches
30-50%ElastiCache reserved nodes cut the rate ~30-50% for a 1- or 3-year term. Caches are almost always steady-state, making them ideal reservation candidates.
Consider ElastiCache Serverless for spiky traffic
Workload-dependentIf your cache load is bursty, aws_
FAQ
How does c3x count nodes in a replication group?
For cluster mode it multiplies num_
Does engine choice (Redis vs Valkey) change the price?
Valkey nodes are priced slightly lower than Redis for the same node type. c3x reads the engine attribute and applies the corresponding rate.
How is this different from aws_ elasticache_ cluster?
aws_
Are backups included in the estimate?
One snapshot per node is free and not charged. Additional backup storage is usage-based; supply snapshot_
Can c3x model reserved ElastiCache nodes?
Yes. Set purchaseOption to reserved with the term and offering in c3x-usage.yml and c3x applies the discounted node rate.
Related resources
More AWS resources
Further reading
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_.