Attribute Name | Type |
---|---|
orderId | String |
status | String |
items | List |
total | Number |
3.1. Go to DynamoDB service in AWS console, remember to choose us-east-1
3.2. At the left panel, choose Tables -> Choose Create table
3.3. Next, we will fill some information about our table, the table name is orders
and the Partition key is orderId
3.4. Final click Create table
Create orders
table successful
3.5. Next, we need to create some records for simulate data of our service, let’s choose the table we just created
3.6. Click Create item at the menu Actions
3.7. Choose JSON view and paste following JSON below to Attributes, final choose Create item
{
"orderId": {
"S": "12345"
},
"status": {
"S": "DELIVERED"
},
"items": {
"SS": [
"Widget A",
"Gadget B"
]
},
"total": {
"N": "150"
}
}
After created, you need to refresh the page
Then repeat from the step 3.6 with another data
{
"orderId": {
"S": "6789"
},
"status": {
"S": "PROCESSING"
},
"items": {
"SS": [
"Gizmo C"
]
},
"total": {
"N": "75.50"
}
}
Yeah, we got 2 records in our orders table, let’s go to the next step