ElastiCache does not support direct stopping and starting of clusters. Instead, the best way to minimize the cost of ElastiCache when it’s not in use is to scale down the cluster to the minimum configuration or to take snapshots of your data, delete the cluster, and recreate it when needed.
Scaling Down the Cluster
You can scale down the ElastiCache cluster to the minimum configuration to reduce costs. This involves reducing the number of nodes and changing the instance type to a smaller, less expensive one.
AWS CLI Commands
aws elasticache modify-cache-cluster --cache-cluster-id your-cache-cluster-id --num-cache-nodes 1 --cache-node-type cache.t2.micro --apply-immediately
Code language: CSS (css)
Script for Scaling Down and Restoring ElastiCache Cluster
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow , and SEO strategies at Wizbrand.
Do you want to learn Quantum Computing?
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at WIZBRAND