AWS DynamoDB Setup

As I work with more and more clients the use cases for DynamoDB continue to rise.  I wanted to put together a quick how to article.

Why DynamoDB?

Solid performance

Can scale

It is not a relational database

It is a fully managed DB that is replicated across 3 x AZs providing HA

Low cost

Integrated with IAM for authorization, admin, and security.

How to configure a DynamoDB

Amazon DynamoDB console landing page with options to create tables, add and query items, and monitor tables.

create

Create DynamoDB table form with a table name, primary partition key, and default settings.

Here is where you want to give a name to the table and also provide a name for the primary partition key

You can uncheck the use default settings button for more customization

DynamoDB table settings with secondary indexes and provisioned read and write capacity controls.

I’m switching to provisioned so it is free-tier eligible

These boxes are greyed out because auto scaling has been setup

DynamoDB capacity calculator estimating read and write capacity and monthly cost from item size and request rates.

AWS even builds in a nice calculator for calculating cost

My example: size of 8kb, 20 reads per second and want 40 writes per second

DynamoDB read and write auto scaling settings with utilization targets and provisioned capacity limits.

Here is where you can change the thresholds for scaling up and down

DynamoDB table encryption options with the default Amazon DynamoDB owned key selected.

Create and now we are done

DynamoDB table overview showing the table status, primary key, capacity, encryption, and related settings.

Give it a minute and now your DynamoDB is created

DynamoDB Items tab before a record is added, with the Create item button available.

Items > create item

DynamoDB Create item editor populated with a username and sample baseball and football team attributes.

Insert some data then save

DynamoDB Items tab showing the saved sample record and its attributes in the table.

Everything looks good

Summary:
As you can see setting up a basic DynamoDB is very easy and simple if you already have a plan in place.  As always, I hope y’all found this useful.

Continue reading

How to Create Transport Zone in VMware NSX-T 3.2

Explore another guide in this topic and build on what you have just read. Read the article

Leave a Comment