This is a Repository that contains YAML CloudFormation template to create an ElastiCache Redis (Serverless) cluster with an Amazon Linux 2023 EC2 instance and connect to it.
This template can be used to create an ElastiCache Redis (Serverless) cluster with an Amazon Linux 2023 EC2 instance and connect to the Redis cluster.
-
Download the template to your local machine from GitHub repository.
wget https://raw.githubusercontent.com/sattyagrah/Serverlessredis-ec2/main/serverless-redis-ec2.yaml
-
Use the template to create the Stack through AWS Console.
-
After creating the stack connect to Ec2 instance and run the command -
sudo /home/ec2-user/redis.sh
-
You will be connected to the Redis serverless cluster.