π Create a table with Amazon DynamoDB,β¬οΈ Upload data into DynamoDB using AWS CloudShell,π§ Edit data in your DynamoDB tables .
Log in with your IAM Admin User.
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.
Log in as the root user.
Open the AWS IAM Console.
On the left-hand navigation panel, select Users.
Click Create user.
Enter a username (e.g., YourName-IAM-Admin
).
Enable Access to the AWS Management Console.
Set a custom password you can remember.
Deselect the option for βUsers must create a new password at next sign-in.β
Attach the policy AdministratorAccess.
Click Create user.
π‘ 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).
Open the DynamoDB Console.
Click Create table.
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.
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.
Select your table, CloudStudents\
.
Click Create Item.
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
.
π‘ 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.
Ensure your table CloudStudents
is created.
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.
Youβve set up an IAM user, created a DynamoDB table, and added data successfully. π
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. π