Components Of DynamoDB

  • AWS Account: Before starting this tutorial, you must have an AWS account. Read this article in case you don’t have an AWS account.
  • DynamoDB Table: You must have a table, so you can create/write an item into it. If you don’t know how to create the table read this article.

DynamoDB – Creating Items

Creating an item in a DynamoDB table is a vital operation in application development that allows you to upload data. We will explore how we can create items for tables using different methods used for different purposes.

Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. With DynamoDB, you can create database tables that can store and retrieve any amount of data and serve any level of request traffic. You can scale up or scale down your table throughput capacity without downtime or performance degradation. To know more about it read this article.

Similar Reads

Components Of DynamoDB

AWS Account: Before starting this tutorial, you must have an AWS account. Read this article in case you don’t have an AWS account. DynamoDB Table: You must have a table, so you can create/write an item into it. If you don’t know how to create the table read this article....

Data Model in DynamoDB

Tables: Similar to any other database system, DynamoDB stores data in tables. A table is a collection of items. Items: An item is a group of attributes that is uniquely identifiable among all of the other items. Each table contains zero or more items. Attributes: Each item is composed of one or more attributes. An attribute is a fundamental data element, something that does not need to be broken down any further....

Step-By-Step Guide To Create Items In AWS

Step 1: Login into AWS -> https://aws.amazon.com/ Management...

Read an item using the Amazon Management Console (GUI)

Step 1: After landing on the DynamboDB dashboard, go to Tables from the sidebar and click on your table name (in my case ‘Music’)....

Read an item using the Amazon CLI (Command Line Interface)

Step 1: Select Cloudshell from the bottom left or just open AWS CLI on your system....

Best Practices for Creating Items

Primary Key Design: Select Partion key or Composite according to your data you are going to insert. In above example we selected composite key because Artists name can be repeated but both artist name and song can’t be similar. Large Items and Attributes: DynamoDB currently limits the size of each item (400 KB) that is stored in a table, which includes both attribute names and values binary length. Timestamps: While using timestamp as one of your attributes it is good to use ISO time format (YYYY-MM-DD’T’hh:mm:ss’Z’)....

Conclusion

We have successfully created an item into the DynamoDB table (Music) using two methods Amazon Management Console and CloudShell (AWS CLI). Using GUI you can easily create items by just filling fields but if you want to create an item from outside Amazon Management Console we can use AWS CLI....

Creating Items In DynamoDB – FAQ’s

1. What are items in DynamoDB?...