Sunday, 18 May 2014

How to work with DynamoDB using the AWS Toolkit in Eclipse

This is another in a series of videos that I am producing for my YouTube channel HowDoYouDoStuff.

In this video, I am going to show you how to work with DynamoDB using the AWS Toolkit in Eclipse

You can read the transcript below.

HTML 5 Player


Hi guys. I'm Phil Stirpe.

In this video, I am going to show you how to work with DynamoDB using the AWS Toolkit in Eclipse.

In an earlier video I showed you how to install the AWS Toolkit into Eclipse and associate it with an IAM user I created earlier.

In this video I just want to show you how to use the AWS Toolkit to perform some management tasks in Eclipse. In particular DynamoDB.

I’m not going to look at how we can use the SDK to write code to interact with DynamoDB. Rather simply create tables, add records and delete tables.

Just as a reminder here is the user account that I associated with when I installed the AWS toolkit.

So there is an IAM user called Frank. And this is Frank’s access key and secret key. It is by using these credentials that Eclipse via the AWS toolkit is able to get authenticated by Amazon web services.

If you saw the earlier video, a just point out that I have now updated Frank’s privileges ( or at least a group he’s in) to allow access to DynamoDB.

So let’s pick one task to get us started. That’s creating a DynamoDB table. Let me right click this node and select Create Table.

This is the kind of task that the developer might carry out in Eclipse when they need a table to work against but it’s not actually worth writing the code to create one.

Creating a table via the AWS toolkit is as simple as using the AWS console.

Let me put in a table name of trainers and I’ll use a hash key name of TrainerName.

Many of the features available in the AWS console are available here. For example you could enable a range key.

You can specify the read and write capacity. I’ll enter 1 for each although you would be likely to enter higher values for production databases.

You could specify secondary indexes both local and global.

Let me click the Finish button and now you can see that the Trainers table has been created. A very straightforward process.

Another thing that you are likely to want to do quickly in Eclipse as a developer is to enter some records into your DynamoDB table. So let’s try that will stop

I’ll right click on the Trainers node and select Open Query Editor.

You can see the hash key here and I can start entering values.

So I’ll begin by entering a trainer name of Phil.

I’ll need some more so I’ll go with Mike, Matt and Geraldine.

Nice and simple.

As a developer working in Eclipse, if you needed a DynamoDB table and didn’t have access to the AWS console you could simply do it here using the toolkit.

Let’s do one last thing. Not only is it easy to create a table and add records to it using the toolkit in Eclipse, it’s also very easy to delete a table.

So let me just right click on the Trainers node, select delete and then confirm.

Not an exhaustive demo so just wanted to show you how simple it is to add a table, insert records and then delete a table. All without leaving Eclipse.

There you have it.

In this video, I have shown you how easy it is to work with DynamoDB using the AWS Toolkit in Eclipse.

Thanks for watching and please feel free to comment on my blog ( and Facebook page ( Perhaps you could suggest more video topics? Most of all, don't forget to subscribe to keep up with my videos as I release them.

Bye for now.

Flash Player

See you soon

Phil Stirpé
"I don't do average!"

1 comment:

  1. I get a lot of great information here and this is what I am searching for. Thank you for your sharing. I have bookmark this page for my future reference. Search aws jobs in hyderabad.