Introduction to DynamoDB -AWS

In this post you can see basic about Amazon DynamoDB.

What is this DynamoDB feature in Amazon Web Services ?
Its a fast and flexible NoSQL database service for all applications need consistent, single-digit millisecond latency at any scale. It is a fully managed database and supports both document and key-value data models.

Create a new table

In the AWS console search and select DynamoDB
Screen Shot 2017-09-29 at 11.54.29 AM

From there select Create Table

DynamoDB

Now we are going to create by filling some steps here.
Fill the necessary as below and tick “Use default settings”
Click Create

Screen Shot 2017-09-29 at 11.55.49 AM.jpg

You will get the following screen.

Screen Shot 2017-09-29 at 11.57.16 AM.png

Adding Data

Click Items from the top tab section and click Create items.

Screen Shot 2017-09-29 at 11.57.25 AM.png

Type these details when you get the window
Artists (Value-String) : Pink Floyd
Song (Value-String) : Money

To create another attribute click “+” left to the song then click Append. In the drop-down list select string.
Now new attribute row will be added

In field type – Album (Value-String) | Value – The dark side of the moon
Field – Year | Attribute type – Number | Value – 1973

Click Save

Screen Shot 2017-09-29 at 11.59.38 AM

Now I am creating another two items.

Screen Shot 2017-09-29 at 12.01.18 PM

Screen Shot 2017-09-29 at 12.02.54 PM

Query the Table

Query operations find items based on primary key and optionally sort key.

Click the pull down menu (Query:[Table]) and get the scan option and select Query instead of Scan. As you can see I have filled the necessary boxes with details to make the scan. And my result also shown in the image.

Partition key is same as Primary key in the database

 

screen-shot-2017-09-29-at-12-05-04-pm.png

Delete the table

From the left pane click Actions and click delete

Screen Shot 2017-09-29 at 12.09.01 PM.png

Click the confirmation as well

Screen Shot 2017-09-29 at 12.09.09 PM.png

Hope you have a clear idea about creating a simple database in AWS and entering data into it and doing query to the database. 

Thank you !!

Useful links –
http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Introduction.html
https://www.youtube.com/watch?v=ujWV3-m1pLo