To get started with the Amazon DynamoDB Image Tagging Demo for DynamoDB Local, you need to enter some basic configuration information to point
your browser to your DynamoDB Local endpoint and database.
To set up an this application:
- Enter the endpoint for DynamoDB Local.
- Enter the access key id. With DynamoDB Local this is not used for authentication. Instead, it determines directly "account" is used. Make sure to use the same
access key id as you used to create the required tables, if you have already done that. For example, if you are using this demo application along with the DynamoDB Shell,
use the access key id you configured in the DynamoDB Shell. By default the DynamoDB shell uses "cUniqueSessionID".
- Now you need to create the necessary tables in DynamoDB. You may have already done so, or can do so now, by opening the DynamoDB Shell and running the tutorial.
The DynamoDB Shell is hosted out of the same endpoint as this page, with the path "/shell" (for example, "http://localhost:8000/shell").
If you would like to create the tables yourself outside of the tutorial, create them with the following names, schemas, and indexes:
Table Name |
Hash Key |
Range Key |
Reads |
Writes |
Secondary Indexes |
Image |
Id |
|
1 |
1 |
|
Tag |
Tag |
|
1 |
1 |
|
ImageTag |
Tag |
ImageId |
1 |
1 |
Index Name |
Index Type |
Hash Key |
Range Key |
Projection |
Reads |
Writes |
VoteCount-index |
Local |
Tag |
VoteCount |
ALL_ATTRIBUTES |
- |
- |
ImageId-index |
Global |
ImageId |
Tag |
KEYS_ONLY |
1 |
1 |
|
- Once you have completed these steps, return to the demo page and start tagging!