Create DynamoDB tables

  1. At the AWS Console interface
  • Choose DynamoDB
  1. Choose Create table
  2. At the DynamoDB Table interface
  • Table name: Chat-Messages
  • Partition key: ConversationId
  • Sort key: Timestamp
  • Choose Create table
  1. Choose create table to create the second table
  2. At the table creation interface
  • Table name : Chat-Conversations
  • Partition key: ConversationId
  • Sort key: Username
  1. Scroll down and Choose Create global index
  2. At the GSI interface
  • Partition key : User name
  • Sort key: ConversationId
  • Choose Create index
  1. Choose Create table