Skip to content

Latest commit

 

History

History
145 lines (86 loc) · 7.38 KB

redis-enterprise-cloud-setup.md

File metadata and controls

145 lines (86 loc) · 7.38 KB

Redis Enterprise Cloud Setup

Objective

The goal is to deploy Redis Enterprise Cloud as your vector database for AWS Bedrock on the AWS Marketplace. You will create a flexible, pay-as-you-go subscription. If you are new to Redis, we even give you a 14-day free trial of $500 USD to get started!

Link directly from the Bedrock configuration screen, or manually follow this link to the AWS Marketplace offering to get started.

Setup Procedure

Getting started from AWS Marketplace

Once on the landing page, continue to click on View purchase options.

bedrock-redis-rc-2

On the product page,

  1. Click on the Subscribe button. This button gets greyed out after you click on it for the first time.
  2. Then the banner highlighted at the top, will appear.
  3. On this banner, go ahead and click on Setup your account.

bedrock-redis-rc-3

This navigates you to the sign-in page of Redis Enterprise Cloud web console.

bedrock-redis-rc-4

As soon as you sign in , you will see that your AWS Account ( example: Srini 1320974) is displayed and you will be able to connect this AWS account with Redis Enterprise Cloud web console. Go ahead and check the selection box highlighted. bedrock-redis-rc-5

Click Connect account. This will connect your AWS account with "Redis Enterprise Cloud" web console.

bedrock-redis-rc-6

Once connected successfully, you will see a message at the top ( see annotation 1) and now you can get started. In this case, since a "Free Trial" option is chosen, you will see a Start free trial option. Go ahead and click on Start free trial.

bedrock-redis-rc-7

As soon as you login, you will see this UI. Notice that there is a Free Trial banner at the top. Ignore this banner, if you are not on a promotional free tier.

  1. Appearance of AWS Marketplace icon, indicates that your Redis account is now connected to your AWS account.
  2. On the Setup tab, you will see cloud vendors.
  3. Select AWS if it is not highlighted and selected already.

bedrock-redis-rc-8

Setting up Redis Subscription

Go ahead and select your Region and give Subscription name a name.

bedrock-redis-rc-10

Redis 7.2 is now available for you to choose. This is the latest and greatest offering from Redis. Select it.

bedrock-redis-rc-11

Choose a Region and a CIDR, like what is shown below.

bedrock-redis-rc-12

Simply choose default values here.

bedrock-redis-rc-13

Sizing a Redis Database

On the Sizing tab, click on + button to add a new database.

bedrock-redis-rc-14

Give your database a name and select RediSearch and RedisJSON modules.

bedrock-redis-rc-15

Depending upon the total number of documents you intend to use in your vector database, you will need to start with a specific data size for your applications. For this exercise, use the approximate sizing table below to help pick a starting point (which you can always adjust up or down later on).

Total Size of Documents in S3 Db size w/out replication (no HA) Db size w/ replication (HA)
10,000 KB 135 MB 270 MB
100,000 KB 1.35 GB 2.7 GB
1,000,000 KB 13.5 GB 27 GB
10,000,000 KB 135 GB 270 GB

If you would like to understand the rationale behind the above calculations, please check out the announcement blog that has more details.

Alternatively, you can select a simple minimalistic configuration for now (example: Memory = 1 GB and Throughput Shards = 1) and adjust later.

bedrock-redis-rc-21

Once you review the total cost price, and other details, simply click on the Create subscription button to create Redis Enterprise Cloud Flexible subscription.

bedrock-redis-rc-22

The actual subscription creation may take approximately 5 mins to 15mins.

bedrock-redis-rc-23

Once the subscription is created, you will see that it is ready with a Green amber light on in the Status column.

bedrock-redis-rc-24

TLS Setup for your Redis Database

If you click on the database, the database configuration screen shows that the TLS is turned off by default. Click on Edit button to edit the details.

bedrock-redis-rc-25

Go ahead and turn on the TLS (Annotation 1). You will download the Cloud certificate authority (Annotation 2). You will also check TLS client authentication (Annotation 3). You will Generate certificate (Annotation 4). And finally you will click on the Save database (Annotation 5).

bedrock-redis-rc-tls-1

When you click on Generate certificate, you will see the certificate text appearing between -----BEGIN CERTIFICATE----- and -------END CERTIFICATE---------. (Annotation 1) Make sure you download the certificates (Annotation 2) before saving the the database configurations.(Annotation 3)

bedrock-redis-rc-tls-2-generate-client-cert

Additional Redis database endpoint configurations

Redis Enterprise Cloud on AWS is now ready for your use. Typically, the developers need an endpoint, a user password and the server certificate to connect to the database from their applications.

bedrock-redis-rc-30

Redis web console also gives you code snippets on how to connect from different clients. Choose the one that is appropriate to your client applications.

bedrock-redis-rc-31

Like mentioned above, here is how you can get the password to your Redis database. bedrock-redis-rc-32

Next Steps

By now, you have spun up a Redis Enterprise Cloud subscription in AWS and validated the connection. Next, you will need to create a vector index.

Make sure to hold on to the following details for your database as you will need these for the final integration step.

Redis Enterprise Cloud Database Hostname
Redis Enterprise Cloud Database Port Number
Redis Enterprise Cloud Database Password
Redis Enterprise Cloud Database Server & Client certs for TLS