DEV Community

Cover image for Utilising the AWS Console to Perform Read and Write Operations on DynamoDB for a Single Items
Oloruntobi Olurombi
Oloruntobi Olurombi

Posted on

Utilising the AWS Console to Perform Read and Write Operations on DynamoDB for a Single Items

In the realm of cloud computing, DynamoDB stands as one of the stalwarts, offering a powerful and flexible NoSQL database service. While you may not engage in reading and writing single items in DynamoDB on a regular basis, it holds significance as a valuable learning exercise and a practical demonstration of the system's capabilities. This article takes you through the process of utilising the AWS Console to achieve this task.

Prerequisite:

  • AWS Account

Table Creation

  • Accessing the AWS Console: Log in to your AWS account and navigate to the DynamoDB service.

Image description

  • Creating a Table: Once in the DynamoDB dashboard, you'll spot the prominent "Create Table" button.

Image description

  • Upon clicking it, you'll be prompted to define essential table details:

a. Table Name: Give your table a meaningful name.
b. Partition Key: Select the attribute that will serve as the partition key.
c. Remaining Settings: For this demonstration, you can leave the rest of the settings as default.

Image description

Image description

Image description

Item Creation

With the table in place, let's proceed to create a single item within it:

  • Accessing Actions: After selecting your newly created table, navigate to the "Actions" button.

  • Creating an Item: From the dropdown menu, choose "Create Item."

Image description

  • JSON View Selection: On the ensuing "Create Item" page, you're presented with two view options: Form and JSON. For the purpose of this demonstration, we'll opt for the JSON view.

Image description

  • Attributes Configuration: By unselecting the "Attributes" button, you're ready to configure your item's attributes using the JSON view.

Image description

  • JSON Configuration: Update the JSON view with the following attribute values:
{
  "id": 1,
  "first_name": "Jack",
  "last_name": "Ma",
  "home_airport": "Beijing Daxing International Airport",
  "subscriber": true,
  "ip_address": "40.33.201.89",
  "last_flight": "8/18/2023"
}

Enter fullscreen mode Exit fullscreen mode

Image description

  • Item Creation: Click the "Create Item" button to initiate the creation process.

Image description

  • Confirmation: Upon completion, verify that the item was successfully created.

Image description

Practical Implications

The ability to read and write single items in DynamoDB proves to be a versatile capability with various practical applications, particularly within CRUD (Create, Read, Update, Delete) operations. This process is invaluable when troubleshooting, rectifying records, generating test data, or designing new tables. However, it's important to recognise the context in which this technique is most suitable.

While this approach is ideal for scenarios where you need to populate a few records for testing or design purposes, it may not be the most practical option when dealing with large-scale data sets or performance testing. For such scenarios, more efficient methods are recommended.

In conclusion, the process of reading and writing single items in DynamoDB using the AWS Console serves as an insightful exercise that not only demonstrates the platform's functionality but also provides a foundational understanding of its capabilities. Whether you're exploring DynamoDB's features or preparing for more extensive data management tasks, this exercise proves to be an informative endeavour.

Top comments (8)

Collapse
 
segun-olawale15 profile image
Segun Olawale

I thoroughly enjoyed reading this. It was both informative and engaging. The insights and information presented in this piece were quite enlightening, making it a valuable source of knowledge on the subject. I appreciate the effort that went into creating this, and I look forward to more content from you in the future.

Collapse
 
dpalmer profile image
Dani Palmer

What a fantastic article! It's incredibly well-written and provides valuable insights. The author has done a remarkable job of presenting their ideas and research. I thoroughly enjoyed reading it, and I believe it will be a valuable resource for anyone interested in this topic. Kudos to the writer for their outstanding work!

Collapse
 
walteronkane profile image
Kane Walters

Cool article

Collapse
 
walteronkane profile image
Kane Walters

Great stuff

Collapse
 
adewale-john profile image
Adewale John

nice read

Collapse
 
fisheye profile image
Fish Taylor

Enjoyable to read.

Collapse
 
xabi1992 profile image
Xabi Ike

Nice one!!!

Collapse
 
ngozi-tech profile image
Ngozi Micheal

Nice article