Amazon DynamoDB
Developer Guide (API Version 2012-08-10)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Working with Items Using the Amazon DynamoDB Console

You can use the Amazon DynamoDB console to add or delete items to a table.

Adding an Item

You can upload a large number of items programmatically. However, the console provides a way for you to upload an item without having to write any code.

To add an item

  1. Open the Amazon DynamoDB console at https://console.aws.amazon.com/dynamodb/home.

    If you not already signed in, you will see the Sign In dialog before you see the console.

  2. Select the Reply table and click Explore Table.

  3. Click the Put Item tab.

  4. The Put Item tab shows the data entry fields for you to enter the required primary key attribute values. For example, the following screen shot shows the Id and the ReplyDateTime primary key attributes of the Reply table. To add other attributes, click Add Attribute.

  5. For each attribute, provide a value and select its type from the Attribute Type drop-down box.

  6. After you have added the new item, click Put Item to upload the new item to the table.

Deleting an Item

You can delete one item at a time using the console.

To delete an item

  1. Open the Amazon DynamoDB console at https://console.aws.amazon.com/dynamodb/home.

  2. In the Tables pane select a table and click Explore Table.

  3. In the Browse Items tab, click on the item in the table that you wish to remove, and click the Delete Item button.

  4. In the Delete Item? dialog box, click Yes, Delete.

Updating an Item

You can update an item through the Amazon DynamoDB console using the Browse Items tab.

To update an item

  1. Open the Amazon DynamoDB console at https://console.aws.amazon.com/dynamodb/home.

  2. In the Tables pane select a table and click Explore Table.

  3. In the Browse Items tab, click on the item in the table that you wish to update, and click the Edit Item button.

  4. Change the desired attributes or values, and click Update.

    If you add an attribute that did not previously appear in a column in the console, the new column for that attribute is not automatically displayed after the item is saved.

    You will see a confirmation if the update was successful. You can refresh the display by clicking the Scan radio button and clicking Go. Be aware that the operation will consume the same number of throughput capacity units that any other full-table scan consumes.

    After the scan completes, the new column is visible in the console.

Copying an Item

You can use an existing item to create a new item through the Amazon DynamoDB console.

To copy and save a new item

  1. Open the Amazon DynamoDB console at https://console.aws.amazon.com/dynamodb/home.

  2. In the Tables pane, select a table and click Explore Table.

  3. In the Browse Items tab, click on the item in the table that you wish to copy, and click the Copy to New button.

  4. Change the hash and/or range key to avoid overwriting the original item, then change any other attributes or values and click Put Item.

    If you forget to update the hash and/or range keys, you'll see a warning that you're about to overwrite the original item. Click Cancel, update the keys, and click Put Item to save the changes.