Creating an Amazon DynamoDB Table | Scribe

    Creating an Amazon DynamoDB Table

    • Hafeez Baig |
    • 15 steps |
    • 3 minutes
    information ordinal icon

    Refer to the following guide to learn how to use IAM in the cloud\ <https://scribehow.com/shared/Creating_an_IAM_User_and_User_Group_in_AWS_Management_Console__hWNiiXlcRJKFqYZZEJD-cg>

    1

    Sign in to **AWS Management Console** as an **IAM User** **Pre-requisite** - Ensure you have selected the AWS region closest to your location\ For this guide, we will be using us-east-2 (Ohio) as a preferred choice

    2

    Type **DynamoDB** in the search bar and click on **DynamoDB** to view the **DynamoDB** page

    information ordinal icon

    **What is DynamoDB in AWS?** Amazon DynamoDB is a fully managed NoSQL database service provided by Amazon Web Services (AWS). It offers fast and flexible document and key-value data storage with seamless scalability, high availability, and low latency.

    3

    **Amazon DynamoDB** page will open, click on the **Create table** button

    4

    **Create table** wizard will open, enter "**todo**" as **Table name** and "**id**" as **Partition key** with **String** Data type

    information ordinal icon

    **What is Partition key in DynamoDB?** In Amazon DynamoDB, a partition key is a primary attribute that determines the partition (physical storage) in which an item is stored. Each item in a DynamoDB table must have a unique partition key value, which is used as the input to an internal hash function to determine the partition where the item will be stored.

    5

    Scroll to the **Table settings** section and select the option **Customize settings**

    6

    Scroll to the **Table class** section and select the option **DynamoDB Standard**

    information ordinal icon

    **What is DynamoDB Standard?** - It refers to the default storage class for data storage. It offers high durability, availability, and performance characteristics suitable for most use cases. **What is DynamoDB Standard-IA?** - It stands for DynamoDB Standard - Infrequent Access. It is a storage class designed for data that is accessed less frequently but still requires durability and availability. Standard-IA offers lower storage costs compared to the standard class, making it ideal for scenarios where data access patterns are less frequent.

    7

    Scroll to the **Read/write capacity settings** section and select the option **Provisioned** for Capacity mode

    information ordinal icon

    In Amazon DynamoDB, "**Provisioned**" and "**On-demand**" are two capacity modes that determine how you manage and pay for the read and write capacity of your DynamoDB tables.

    8

    Scroll to the **Read capacity** and **Write capacity** section, and select the option **On** radio button for both **Auto scaling**

    information ordinal icon

    **What is Auto scaling in DynamoDB?** Auto Scaling in Amazon DynamoDB is a feature that automatically adjusts the provisioned read and write capacity of your DynamoDB tables in response to changing application traffic. It helps maintain consistent performance for your applications while optimizing costs by dynamically scaling capacity up or down based on demand.

    9

    Scroll to the **Secondary indexes** section, here you can create local and global indexes

    information ordinal icon

    **What is Secondary indexes in DynamoDB?** In Amazon DynamoDB, secondary indexes are additional data structures that allow you to query your table using attributes other than the primary key. While every DynamoDB table must have a primary key, secondary indexes provide flexibility in querying by enabling efficient retrieval of items based on attributes other than the primary key.

    10

    Scroll to the **Estimated read/write capacity cost** section to view the estimated cost

    information ordinal icon

    **What is Estimated read/write capacity cost?** The "Estimated read/write capacity cost" in Amazon DynamoDB refers to the projected cost associated with the provisioned read and write capacity units (RCUs and WCUs) for your DynamoDB tables.

    11

    Scroll to the **Encryption at rest** section, select the radio button **Owned by Amazon DynamoDB**

    information ordinal icon

    **What is Encryption key management?** Encryption key management refers to the process of securely generating, storing, distributing, and controlling access to encryption keys used to encrypt and decrypt data. It involves managing the lifecycle of encryption keys to ensure the security and integrity of encrypted data.