Deploy Redis in AWS Virtual Private Cloud (VPC)

Amazon Virtual Private Cloud (Amazon VPC) enables you to provision a private network on the AWS Cloud. With VPC you can define your own subnets and also control routes between your subnets. Amazon VPC is an ideal environment to deploy your Redis clusters.  You can prevent your clusters from being exposed to the internet and also lock down access from your internal servers using AWS Security groups.

ScaleGrid makes it trivial to deploy and manage Redis standalone and Master-slave nodes in an AWS Virtual private cloud (VPC). The Redis instances can be deployed in a private subnet or a public subnet.

In this blog post, we will go through the steps to deploy a highly available three-node (Master-Slave-Slave) Redis configuration across three AZ’s in a VPC.

Step 1: Create a Redis ‘Cloud profile’ for your VPC subnets

1. Enter your AWS keys. You can also set up a custom IAM policy for ScaleGrid:rediscloudprofile1

2. Pick your AWS region:rediscloudprofile2

3. Select your Deployment type as ‘VPC’:rediscloudprofile3

4. Select your VPC and subnet:rediscloudprofile4

5. Select the security group you want to associate with your Redis servers (the same security group has to be chosen for all the Cloud profiles):rediscloud5

6. Name the VPC cloud profile and click create:rediscloudprofile6

7. Create two more VPC profiles for two more subnets in two different AZ’s:

Step 2: Deploy Redis Master/Slave nodes to the newly created Cloud profiles

1. Select Redis name, version and machine size:rediscluster1

2. Deploy each node in a separate VPC subnet/Cloud profile:rediscluster2

3. Select Redis cache options:rediscluster3

4. Select Redis persistence and Backup options:rediscluster4

5. Choose encryption at rest if needed:rediscluster5

6. Click create to create the cluster!

Don’t forget to check out our NEW Redis hosting products and services. If you have further questions please feel free to contact us at support@scalegrid.io.


Dharshan is the founder of ScaleGrid.io (formerly MongoDirector.com). He is an experienced MongoDB developer and administrator. He can be reached for further comment at @dharshanrg


2 Shares
+11
Tweet
Share
Share1
Pin