AWS Dev DynamoDB

DynamoDB is a NoSQL managed database service from AWS.

AWS Console

Create New Table

In this example, we will create a table to store music information within a DynamoDB table. We will use artist a Partition Key and Title as a Sort Key.

  1. Open AWS Console
  2. Open DynamoDB service
  3. Create a Table
    1. Provide a value for table name: music
    2. Provide a value for partition key: artist
    3. Provide a value for sort key: title
  4. Uncheck Use default settings
  5. Secondary indexes
    1. Create one if desired: allow you to search by the index and improve performance
    2. Provide a value for partition key: album
    3. Provide a value for sort key: rating
  6. Configure Auto-scaling or select on demand

Create Items

  1. Open the previously created table
  2. Select Items tab
  3. Click on Create Item
    1. artist: Dionysos
    2. title: Song for Jedi
    3. album: Western sous la neige
    4. rating: 5
  4. Save
  5. Click on Create Item
    1. artist: Dionysos
    2. title: She Is the Liquid Princess
    3. album: Western sous la neige
    4. rating: 4
  6. Save

Query Item

  1. Search using keys
    1. In the search panel, select Query
    2. Search using Partition Key
      1. Enter a valid value for artist et search: you see your result
    3. Search using Partition Key and Sort Key
      1. Enter a valid value for artist and title: you see your result
  2. Search using Other attribute
    1. In the search panel, select Scan
    2. Use filter
      1. Enter attribute rating
      2. Enter value 5
      3. See your result

Comments