AWS DynamoDB - Write Data to a Table Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report In this article, we will write data to a table in DynamoDB. DynamoDB is a NoSQL database that supports semi-structured data i.e. key-value and document data structures. A DynamoDB table contains items. An item is a collection of attributes and each item has a primary key that should be not null. Also, each item can have a different number of attributes. See the below examples. Example 1: { "ArticleID": 1, "NameofArticle": "DynamoDb" } Example 2: { "ArticleID": 1, "NameofArticle": "DynamoDb" } { "ArticleID": 2, "NameofArticle": "S3 Bucket", "WrittenBy": "Rohan Chopra" }Approach:Create a table, say, geeksforgeeks, and specify a primary key.Click on the Items tab of the table.Click on Create item and add attributes.Once an item is added to the table, the data is written to the table. The above approach has been illustrated below with images. Create a table: Navigate to the DynamoDB on AWS Console and click on create a table. There provide the name of the table and specify a primary key that will differentiate one item from another. In our case, the primary key is ArticleID and it is of type Number. Keep the table settings as default and click Create. Create Table Add items to the table: Once the table is created, we need to add items to write data to a table. Navigate to the Items tab of the table and click, Create item. An article will by default have ArticleID as one attribute because it is the primary key. Click on append to add more attributes. Different items can have different numbers of attributes. See the below images. Add items to tableItem 1Item 2Table with data From the above images, we see that data has been successfully written to the DynamoDB table. We can add as many items as we want to a table. Thus, by adding items, we are writing data to the table. Comment More infoAdvertise with us R rohanchopra96 Follow Improve Article Tags : DynamoDB Cloud-Computing Similar Reads AWS DynamoDB - Update Data in a Table Amazon DynamoDB is a NoSQL managed database that supports semi-structured data i.e. key-value and document data. A DynamoDB table stores data in the form of an item. While creating a table in DynamoDB, a partition key needs to be defined which acts as the primary key for the table and no schema. Eac 2 min read AWS DynamoDB - Query Data in a Table Amazon DynamoDB is a NoSQL managed database that stores semi-structured data i.e. key-value pair and document data. A table in DynamoDB stores data in form of an item and each item has a primary key. Example: { "Color": true, "Director": "Christopher Nolan", "MovieID": 1, "Name": "Inception", "Ratin 2 min read AWS DynamoDB - Creating a Table DynamoDB allows users to create databases capable of storing and retrieving any amount of data and comes in handy while serving any amount of traffic. It dynamically manages each customerâs request and provides high performance by automatically distributing data and traffic over servers. It is a ful 2 min read AWS DynamoDB - Working with Tables In this article, we will work on DynamoDB tables. DynamoDB is a NoSQL database that stores document data or key-value pairs. A Dynamodb table consists of items and each item is made up of attributes. Different items can have different attributes. See the below example: Example 1: { "MovieID": 123, " 3 min read AWS DynamoDB - Read Data from a Table AWS DynamoDB is a NoSQL managed database that stores semi-structured data i.e. key-value and document data. It stores data in form of an item. An item consists of attributes. Upon table creation in DynamoDB, it only requires a primary key to differentiate between items and no schema is to be defined 3 min read Creating AWS DynamoDB Table Using Terraform I'm going to show how to use Terraform to create a DynamoDB table in AWS. Terraform lets you define infrastructure like databases as code. This makes it easy to version control and share with others. In this article, I'll walk through the steps to set up a Terraform file and define a DynamoDB table 15+ min read Like