Skip to main content
The DynamoDB connector works with plain JSON: keys, items and expression values go in and come out as ordinary objects, and Danube converts them to and from DynamoDB’s typed format. Setup and the IAM policy are on the AWS page.

Tools

The write tools accept a condition_expression, such as attribute_not_exists(pk); when it is false nothing is written.

Safety

  • Read-only at the source. Give the read role only GetItem, Query, Scan, DescribeTable and ListTables. Danube also refuses the write tools on a read_only connection before calling AWS.
  • Scan is capped at 100 items by default. Scan reads and bills every item it passes, even ones a filter drops, so prefer Query on a key or index for large tables.
  • Numbers beyond what JSON represents exactly (above 2^53) come back as strings so no digit is lost.

Example prompts

  • “Describe the orders table: keys, indexes and how big it is.”
  • “Get the order with pk = customer#42 and sk = order#0007.”
  • “Query the status-index for items with status payment_failed, newest first, 20 at most.”
  • “Set status to refunded on order customer#42 / order#0007, only if it is currently payment_failed.”