Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sattyagrah/awsserverlessredisandec2

This is a sample CloudFormation template to create EC2 ( AL2023 ) instance and ServerLess Redis Cache in AWS Cloud.
https://github.com/sattyagrah/awsserverlessredisandec2

aws aws-ec2 cloudformation ec2 ec2-instance ec2-instances elasticache-redis redis templates

Last synced: 23 days ago
JSON representation

This is a sample CloudFormation template to create EC2 ( AL2023 ) instance and ServerLess Redis Cache in AWS Cloud.

Awesome Lists containing this project

README

        

# Elasticache Redis (*Serverless*) with *Amazon Linux 2023*
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.

### NOTE: Only to be used in AWS CLOUD

#### This is a CloudFormation YAML template.

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.

1. Download the template to your local machine from GitHub repository.

```sh
wget https://raw.githubusercontent.com/sattyagrah/Serverlessredis-ec2/main/serverless-redis-ec2.yaml
```
2. Use the template to [create the Stack](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-console-create-stack.html) through AWS Console.

3. After creating the stack [connect to Ec2 instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connect-linux-inst-ssh.html#connect-linux-inst-sshClient) and run the command -
```sh
sudo /home/ec2-user/redis.sh
```

4. You will be connected to the Redis serverless cluster.