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.
- Open AWS Console
- Open DynamoDB service
- Create a Table
- Provide a value for table name: music
- Provide a value for partition key: artist
- Provide a value for sort key: title
- Uncheck Use default settings
- Secondary indexes
- Create one if desired: allow you to search by the index and improve performance
- Provide a value for partition key: album
- Provide a value for sort key: rating
- Configure Auto-scaling or select on demand
Create Items
- Open the previously created table
- Select Items tab
- Click on Create Item
- artist: Dionysos
- title: Song for Jedi
- album: Western sous la neige
- rating: 5
- Save
- Click on Create Item
- artist: Dionysos
- title: She Is the Liquid Princess
- album: Western sous la neige
- rating: 4
- Save
Query Item
- Search using keys
- In the search panel, select Query
- Search using Partition Key
- Enter a valid value for artist et search: you see your result
- Search using Partition Key and Sort Key
- Enter a valid value for artist and title: you see your result
- Search using Other attribute
- In the search panel, select Scan
- Use filter
- Enter attribute rating
- Enter value 5
- See your result
Comments