Your Step-By-Step Project: Load Data into DynamoDB


🌟 Step 1: Login with Your IAM User

Steps:

  1. Log in with your IAM Admin User.

    • If you already have an IAM user, skip to the next step.
  2. Don’t have an IAM user yet? Follow these quick steps:

πŸ’‘ What is an IAM user? An IAM user in AWS allows you to securely access and manage your AWS resources without using the root user account. This protects your root account from potential security breaches.

Steps to Create an IAM User:

  1. Log in as the root user.

  2. Open the AWS IAM Console.

  3. On the left-hand navigation panel, select Users.

  4. Click Create user.

  5. Enter a username (e.g., YourName-IAM-Admin).

  6. Enable Access to the AWS Management Console.

  7. Set a custom password you can remember.

  8. Deselect the option for β€œUsers must create a new password at next sign-in.”

  9. Attach the policy AdministratorAccess.

  10. Click Create user.


🌟 Step 2: Create Your First DynamoDB Table

πŸ’‘ What is DynamoDB? DynamoDB is a NoSQL database that organizes data into tables, where each table is a collection of items (like rows in relational databases). Each item contains attributes (like columns).

Steps:

  1. Open the DynamoDB Console.

  2. Click Create table.

  3. Fill in the following details:

    • Table Name: CloudStudents

    • Partition Key: StudentName (String)

πŸ’‘ What is a Partition Key? A partition key is the primary identifier for items in your table. It’s used to efficiently retrieve data.

  1. Capacity Settings:

    • Turn off Auto Scaling.

    • Set Read/Write Capacity Units to 1.

πŸ’‘ Why Disable Auto Scaling? Auto scaling adjusts database performance automatically but may increase costs. Disabling it ensures the project stays within AWS Free Tier limits.

  1. Click Create table. πŸŽ‰

🌟 Step 3: Add an Item to Your Table

  1. Select your table, CloudStudents\.

  2. Click Create Item.

  3. Enter the following details:

    • Partition Key (StudentName): Nikko

    • Add an attribute:

      • Attribute Name: ProjectsComplete

      • Type: Number

      • Value: 4

πŸ’‘ What are Attributes? Attributes are pieces of data about an item. In this case, ProjectsComplete is an attribute describing the student Nikko.

  1. Click Save. You’ve successfully added an item to your DynamoDB table! πŸŽ‰

🌟 Step 4: Understand DynamoDB Capacity Units

πŸ’‘ Read Capacity Units (RCUs) 1 RCU allows your table to read up to 2 items per second.

πŸ’‘ Write Capacity Units (WCUs) 1 WCU allows your table to write 1 item per second.


🌟 Final Check

  1. Ensure your table CloudStudents is created.

  2. Confirm the item Nikko is visible in the table.

πŸ’‘ DynamoDB Flexibility Unlike traditional relational databases, DynamoDB tables can store items with varying attributes. This makes it ideal for unstructured or semi-structured data.


πŸŽ‰ Congratulations!

You’ve set up an IAM user, created a DynamoDB table, and added data successfully. πŸš€

πŸ“§ Contact

For questions or feedback, reach out:

πŸ“¨ Email: projects@briankimemia.is-a.dev 🌐 Portfolio: Brian Kimemia GitHub: BrianKN019


Thank you for exploring this project! Let’s innovate and build secure AWS solutions together. πŸš€