Creating DynamoDB

Creating DynamoDB

This lab uses DynamoDB to store User data and Game result. We are going to store simple information, and this information will be used to Leaderboard on our static web page.

Additionally, we will use ElastiCache in front of DynamoDB for caching. Because your game “Gomoku” will be very popular, so we need cache layer for performance and reliability!

First things first, let’s make DynamoDB first.

  1. Login to AWS Console and move to DynamoDB page (https://console.aws.amazon.com/dynamodb)
  2. Check region. Every resources on this lab should be launched on same region.
  3. Click “Create Table” to make DynamoDB Table.

DDB

  1. Set Table name as “GomokuPlayerInfo”, and Primary Key “PlayerName”. Make data type as “String”. Let’s click “Create button”.

  2. Enable “Stream” on your DynamoDB Table. It is disabled as default, so select “Exports and streams” tab and click “Enable” button on DynamoDB stream details.

DDB_Stream

  1. Select “New and old images”, and Click “Enable” button on the box.

DDB_Stream_Image

  1. Basic configuration is ended. Let’s make Test Data Sample. Click “Explore table Items” in the upper right corner.

  2. Click “Create Item”, and make new Item.

DDB_Item

  1. Click Create Item button on the editor, and append item.

  2. Put data on your new item same as below. Click “Create Item” to store Item. (Check the data type)

DDB_Item_Sample

  • You can find this Item on the table, when you select table GomokuPlayerInfo and click run on Scan/Query items search items from this table.

Ok. This is Basic settings of DynamoDB. Nextly we are making ElastiCache.