Cook a recipe with AWS: Dynamo DB Table

DynamoDB

Amazon DynamoDB is a fully managed NoSQL database with which you can create database tables that can store and retrieve any amount of data and serve any level of request traffic.

DynamoDB is a schema-less database that requires…


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by nandinirajaram@gmail.com

Image description

DynamoDB

Amazon DynamoDB is a fully managed NoSQL database with which you can create database tables that can store and retrieve any amount of data and serve any level of request traffic.

DynamoDB is a schema-less database that requires only a table name and a primary key when you create the table.

Lets get started with DynamoDB and create a table to store the details of students

Prerequisites

Log into AWS account with a valid user credentials
(Root user not preferred)

Lets Jump to the Recipe now

Steps to create

  • Open the DynamoDB from the aws console

Image description

  • Click on the create table button

Image description

Remember, DynamoDB is a schema-less database that requires only a table name and a primary key when you create the table.

  • Specify the table name, My table name is going to be student_table since student details are being stored
  • Now,Lets Specify the Partition key. I am going to add Student_Id as the partition key.

  • Select the data type as Number

The partition key is part of the table's primary key which is a hash value that is used to retrieve items from your table and allocate data across hosts for scalability and availability.

We can also specify the sort key **for the table but its **optional

The sort key allows you to sort or search among all items sharing the same partition key.

Image description

Now, Scroll down and Make sure the Default Settings is selected for the Table settings

Image description

  • Click Create table button

Image description

You can see the status as "Creating".

Image description

Now lets wait for couple of minutes to get the status changed to *Active *

Image description

Once the table status changed to Active
click on the table name link and you will be navigated to the table page.

Image description
Lets add some items Student details to the table

  • Click on Actions Button
  • Select Create Item

Image description

Lets add the below students to the table

Studentid: 101
Name: Jade

Name is the additional attribute where as studentid is the partionkey attribute

Specify the value of partition key and click on Add new Attribute button to add the Name attribute. Select String Type

Image description

Change the attribute name to Student_Name
Specify the value as "Jade"

Image description

This is the Form View, You can click the JSON View button to see the json version

Image description

  • Click Create item

Image description

  • You can see item getting added to the table

Image description


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by nandinirajaram@gmail.com


Print Share Comment Cite Upload Translate Updates
APA

nandinirajaram@gmail.com | Sciencx (2022-12-02T17:51:13+00:00) Cook a recipe with AWS: Dynamo DB Table. Retrieved from https://www.scien.cx/2022/12/02/cook-a-recipe-with-aws-dynamo-db-table/

MLA
" » Cook a recipe with AWS: Dynamo DB Table." nandinirajaram@gmail.com | Sciencx - Friday December 2, 2022, https://www.scien.cx/2022/12/02/cook-a-recipe-with-aws-dynamo-db-table/
HARVARD
nandinirajaram@gmail.com | Sciencx Friday December 2, 2022 » Cook a recipe with AWS: Dynamo DB Table., viewed ,<https://www.scien.cx/2022/12/02/cook-a-recipe-with-aws-dynamo-db-table/>
VANCOUVER
nandinirajaram@gmail.com | Sciencx - » Cook a recipe with AWS: Dynamo DB Table. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/12/02/cook-a-recipe-with-aws-dynamo-db-table/
CHICAGO
" » Cook a recipe with AWS: Dynamo DB Table." nandinirajaram@gmail.com | Sciencx - Accessed . https://www.scien.cx/2022/12/02/cook-a-recipe-with-aws-dynamo-db-table/
IEEE
" » Cook a recipe with AWS: Dynamo DB Table." nandinirajaram@gmail.com | Sciencx [Online]. Available: https://www.scien.cx/2022/12/02/cook-a-recipe-with-aws-dynamo-db-table/. [Accessed: ]
rf:citation
» Cook a recipe with AWS: Dynamo DB Table | nandinirajaram@gmail.com | Sciencx | https://www.scien.cx/2022/12/02/cook-a-recipe-with-aws-dynamo-db-table/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.