ElastiCache Configuration

ElastiCache Configuration

Nextly, we will configure ElastiCache. This cache will store ranking data.

  1. Move to ElastiCache Console on your AWS Console. https://console.aws.amazon.com/elasticache
  2. Create ElastiCache cluster. We are using Redis. Select Redis Cluster from the left menu and click Create Redis Cluster.
  3. Fill the information like below.

Redis Redis Redis Redis

  • Name: gomokuranking
  • Engine: 6.2 (5.0.4 above recommended)
  • Port: 6379 (default)
  • Parameter group: default
  • Number of replicas: 0
  1. In subnet group setting, you can select an existing default vpc and subnet or create a new vpc and subnet group for workshop.

  2. Click “Create” button to create “Redis”. (It takes time to create Redis)

  3. When Redis cluster turns it’s status “Available”, check Primary Endpoint. We use this endpoint on our Lambda functions.

ElastiCache

  1. Nextly, make Security Group for this ElastiCache. We are making very simple Security Group for our resources.

  2. Let’s move to VPC console(https://console.aws.amazon.com/vpc). Click “Security Group” menu on left side tab and create Security Group.

  3. Put right information on Name tag, Group name, etc and Select default VPC.

  4. We should fix inbound policy in this security group. Select Security Group and Click Inbound Rules.

  5. Click “Edit” button, and create inbound policy like below. Put Security Group ID itself as source. In this policy, it is able to communicate between resources that have this security group.

SecurityGroup

  • Type: All traffic
  • Protocol: All
  • Source: Security Group itself
  1. After you finish creating Security Group, move to ElastiCache Console. Select Redis that we made.

  2. Click “Modify” on the above, Modify Security Group settings to apply Security Group that we created before

ElastiCache_SG

Now we finish ElastiCache configurations, next page is for SQS.