This is a Repository that contains YAML CloudFormation template to create an ElastiCache Valkey (Serverless) cluster with an Amazon Linux 2023 EC2 instance and connect to it.
Note
-
Only to be used in AWS CLOUD.
-
This is a CloudFormation YAML template.
Important
This template can be used to create an ElastiCache Valkey (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.
curl https://raw.githubusercontent.com/sattyagrah/AWSServerlessValkeyAndEc2/refs/heads/main/serverless-valkey-ec2.yaml -o serverless-valkey-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/valkey.sh
-
You will be connected to the Valkey serverless cluster.