Prepare a Security group for elastic cache
Search VPC and you will see below information
Add a new security group which same as this VPC
Go to console to search “Elasticache” or go to this link if you are using ap-southeast region
https://ap-southeast-1.console.aws.amazon.com/elasticache/home
Click create
Select redis, and parameters you need, i named it as redis-test
For this blog, we just we single node, so select number of replicas to 0 and uncheck Multi-AZ
Create new subnet group with VPC (use default VPC)
Setup security group which we prepare at the beginning
Go to your EC2 to test it
Base on documentation provided, https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/GettingStarted.ConnectToCacheNode.html
you can install a cli when you ssh to your EC2
for example, if your redis end point is redis-testing.abcfd.0001.wxyza.cache.amazonaws.com, then your command to connect is
redis-cli -h redis-testing.abcfd.0001.wxyza.cache.amazonaws.com -p 6379