---
title: "Getting Started with AWS DynamoDB"
description: "Learn how to use the NoSQL database AWS DynamoDB and store data flexibly and effectively in this ATA Learning tutorial!"
canonical: "https://adamtheautomator.com/aws-dynamodb/"
---

# Getting Started with AWS DynamoDB

> Learn how to use the NoSQL database AWS DynamoDB and store data flexibly and effectively in this ATA Learning tutorial!

Source: https://adamtheautomator.com/aws-dynamodb/

---

ATA Learning

Tap to hide

[

ATA Learning

](/)

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Search for:  

*   [](https://twitter.com/adbertram)
*   [](https://github.com/Adam-the-Automator)
*   [](https://www.linkedin.com/company/adam-the-automator-llc)
*   [](/feed/)

![Getting Started with AWS DynamoDB](https://adamtheautomator.com/wp-content/uploads/2023/07/aws-dynamodb.jpg)

# Getting Started with AWS DynamoDB

[![](https://secure.gravatar.com/avatar/2beb65fca997135120ed98dc6a2e57dcdf1a7d7d2f5ff687b5d91dc7ccd7a6b5?s=192&d=mm&r=g)Sagar](https://adamtheautomator.com/author/shanky-mendiratta/)3 July 20234 min. read

Categories: [IT Ops](/category/it-ops/)

Tags:[AWS](/tag/aws/)

Table of Contents

*   [Prerequisites](#prerequisites)
*   [Creating a NoSQL AWS DynamoDB Table](#creating-a-nosql-aws-dynamodb-table)
*   [Adding and Deleting Data in the DynamoDB Table](#adding-and-deleting-data-in-the-dynamodb-table)
*   [Querying Data from an AWS DynamoDB table](#querying-data-from-an-aws-dynamodb-table)
*   [Deleting a DynamoDB Table](#deleting-a-dynamodb-table)
*   [Conclusion](#conclusion)

Data management without worrying about provisioning, replicating data, and autoscaling may seem out of reach. Well, not when Amazon’s fully managed service, AWS DynamoDB, got your back!

AWS DynamoDB is a NoSQL database service that scales and manages databases efficiently. And in this tutorial, you will learn how to create a NoSQL DynamoDB table and how you can perform various functions on the table.

Without further delay, dive in and scale up your data management!

## Prerequisites

This tutorial houses hands-on demonstrations. To follow along, ensure you have the following:

*   An [AWS account](https://aws.amazon.com/premiumsupport/knowledge-center/create-and-activate-aws-account/) – A free trial will suffice.
*   [An IAM user with proper rights](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.client.create-user-policy.html) to create and manage the NOSQL DynamoDB table.

Related:[Helpful Guide to IAM in AWS Through Examples](https://adamtheautomator.com/iam-aws/)

## Creating a NoSQL AWS DynamoDB Table

Before taking advantage of the AWS DynamoDB, you must create a NOSQL DynamoDB table. There are various ways to create a DynamoDB table, such as via the AWS CLI tool based on Python library or Terraform, an infrastructure as code (IaC) tool.

But for this tutorial, you will create a NoSQL AWS DynamoDB table via the [AWS Management Console](https://aws.amazon.com/console/).

Related:[Streamline Your AWS Management with the AWS CLI Mac Client](https://adamtheautomator.com/aws-cli-mac/)

To create a NoSQL DynamoDB table, follow these steps:

1\. Open your favorite web browser, and sign into the AWS Management Console with your IAM user account.

2\. Next, search for **DynamoDB** and select the **DynamoDB** service from the result list, as shown below, to access the DynamoDB page.

![Navigating to the DynamoDB service in the AWS Management Console](https://adamtheautomator.com/wp-content/uploads/2023/07/image.png)

Navigating to the DynamoDB service in the AWS Management Console

3\. On the Amazon DynamoDB page, click **Create table** (right-most) to initiate creating a new table. Your browser redirects to a page where you can configure the new table (step four).

![Initiating creating a DynamoDB table](https://adamtheautomator.com/wp-content/uploads/2023/07/image-1.png)

Initiating creating a DynamoDB table

4\. Now, configure the **Table details** as follows, where the values are arbitrary:

*   **Table name** – Provide a descriptive name for your DynamoDB table (i.e., **Football\_table**).
*   **Partition key** – Input a partition key (i.e., **Team**), allowing you to identify all the table items uniquely.
*   **Sort key** – Specify a sort key (i.e., **color**), which allows you to sort the values of all the same partition keys.

![Adding a table name, partition key, and sort key](https://adamtheautomator.com/wp-content/uploads/2023/07/image-2.png)

Adding a table name, partition key, and sort key

5\. Under **Table settings**, choose the **Default settings** option for a quick way to create your table.

![Choosing the default setting of the table](https://adamtheautomator.com/wp-content/uploads/2023/07/image-3.png)

Choosing the default setting of the table

6\. Lastly, set the tag key as **Name**, with the value as **dynamo\_table1** (arbitrary), and click **Create table** (bottom-right) to finalize creating your new DynamoDB table.

![Adding tags and creating the DynamoDB table](https://adamtheautomator.com/wp-content/uploads/2023/07/image-4.png)

Adding tags and creating the DynamoDB table

Once created, you will see the new DynamoDB table listed, as shown below.

![Viewing the newly-created DynamoDB table](https://adamtheautomator.com/wp-content/uploads/2023/07/image-5.png)

Viewing the newly-created DynamoDB table

## Adding and Deleting Data in the DynamoDB Table

You have just created an AWS DynamoDB table, but a table with no data is not doing much. In this example, you will add some data to your table. With populated data, you can later perform various operations, such as checking customer information or analyzing the data.

To add data to your newly-created DynamoDB table:

1\. On the DynamoDB page, navigate to **Explore items** under **Tables**, select your table name (**Football\_table**), and click **Create item**. Your browser redirects to a page where you can configure a new item to add to your table (step two).

![Selecting a table to add the data into](https://adamtheautomator.com/wp-content/uploads/2023/07/image-6.png)

Selecting a table to add the data into

2\. In the **Create item** page, add a **Team** (i.e., **India**) and **color** (i.e., blue) attribute, and click **Create item** (bottom-right) to create the item in your table.

![Adding data into the table by adding a partition and sorting key values](https://adamtheautomator.com/wp-content/uploads/2023/07/image-7.png)

Adding data into the table by adding a partition and sorting key values

3\. Repeat steps two to three to create two more items, as follows:

*   Team – America and London.
*   color – red and green.

You will have the same output once you have added the remaining items, as shown below.

![Viewing all data in the DynamoDB table](https://adamtheautomator.com/wp-content/uploads/2023/07/image-8.png)

Viewing all data in the DynamoDB table

4\. Now, select one item from the list, click the **Actions** dropdown, and choose **Delete items** to delete the selected item.

![Deleting a particular item from the table](https://adamtheautomator.com/wp-content/uploads/2023/07/image-9.png)

Deleting a particular item from the table

## Querying Data from an AWS DynamoDB table

After populating data to your table, how can you verify their accessibility? You will query data to verify they are correctly added to your AWS DynamoDB table.

To query data from your AWS DynamoDB table:

Select your table in the **Explore items** page, and expand the **Scan or query items** section, as shown below.

![Expanding the Scan or query items section](https://adamtheautomator.com/wp-content/uploads/2023/07/image-10.png)

Expanding the Scan or query items section

Now, configure the data query as follows:

*   Select the **Query** option since you are querying data.
*   Select your AWS DynamoDB table (i.e., **Football\_table**) from the dropdown.
*   Choose to query **All attributes**.
*   Insert an item’s **Partition key** (i.e., **America**).

Once configured, click **Run** to run the query.

![Querying data from an AWS DynamoDB table](https://adamtheautomator.com/wp-content/uploads/2023/07/image-11.png)

Querying data from an AWS DynamoDB table

If the query is successful, you will see the results under the **Items returned** section, as shown below. Also, you will notice a notification indicating the units consumed for running the query.

![Retrieving the results of the DynamoDB table](https://adamtheautomator.com/wp-content/uploads/2023/07/image-12.png)

Retrieving the results of the DynamoDB table

## Deleting a DynamoDB Table

Keeping too many tables, especially obsolete ones, only leads to confusion and unwanted charges. Instead of just items, why not delete entire tables you no longer need?

To delete a DynamoDB table, follow these steps:

1\. On the DynamoDB page, navigate to **Tables** (left pane), search for the table to delete, select the table from the results list, and click **Delete**. A pop-up window appears where you need to confirm the deletion.

![Selecting a table to delete](https://adamtheautomator.com/wp-content/uploads/2023/07/image-13.png)

Selecting a table to delete

2\. Now, tick the first box to ensure you **Delete all CloudWatch alarms** for the selected table, type **confirm**, as shown below, and click **Delete** to confirm deleting the table.

![Confirming the table deletion](https://adamtheautomator.com/wp-content/uploads/2023/07/image-14.png)

Confirming the table deletion

3\. Finally, search for the table you deleted, and you will notice it no longer exists.

![Verifying the table has been successfully deleted](https://adamtheautomator.com/wp-content/uploads/2023/07/image-15.png)

Verifying the table has been successfully deleted

## Conclusion

In this tutorial, you have learned how to create your first NoSQL database on AWS DynamoDB managed service via the AWS Management Console.

You have touched on adding, deleting, and querying data from an AWS DynamoDB table. And at this point, you can effectively manage your database with just a few clicks.

Now that you have a database and tables created on the AWS DynamoDB, you can store your data on your database instead of storing it in other services such as [AWS S3](https://adamtheautomator.com/upload-file-to-s3/).

Related:[How To Upload Files to S3 with the AWS CLI](https://adamtheautomator.com/upload-file-to-s3/)

Share this article

[Share on X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fadamtheautomator.com%2Faws-dynamodb%2F&text=Getting%20Started%20with%20AWS%20DynamoDB)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fadamtheautomator.com%2Faws-dynamodb%2F)[Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fadamtheautomator.com%2Faws-dynamodb%2F)

## Related Posts

![](https://adamtheautomator.com/wp-content/uploads/2022/05/HMaster-Your-Data-with-AWS-Quicksight.jpg)

### [Make Data-Driven Decisions with AWS QuickSight Analytics](/aws-quicksight/)

Struggling to make sense of your data? Discover how AWS QuickSight transforms data into actionable insights for smarter decision-making.

![](https://adamtheautomator.com/wp-content/uploads/2023/11/aws-network-access-analyzer-2.jpg)

### [Getting Started with AWS Network Access Analyzer](/aws-network-access-analyzer/)

Unlock the power of AWS Network Access Analyzer. Master network security with step-by-step guidance in this tutorial today!

![](https://adamtheautomator.com/wp-content/uploads/2023/11/ngrok-remote.jpg)

### [Hosting an Ngrok Remote Web App on AWS](/ngrok-remote/)

Learn how to run the Ngrok remote web application on AWS with the FastAPI Python endpoint in Linux through this ATA Learning tutorial!

## Categories

*   [IT Ops](/category/it-ops/)
*   [Cloud](/category/cloud/)
*   [DevOps](/category/devops/)
*   [Home Ops](/category/home-ops/)
*   [Information Security](/category/infosec/)
*   [Software Development](/category/software-development/)

## Site

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Copyright 2026© ATA Learning | [Privacy Policy](/privacy/)
