Amazon DynamoDB
Create tables in Floci, browse and edit their items, and turn on TTL and streams so your Lambda functions react to item changes.
Features
Tables
- List tables with partition key, sort key, index count and item count; filter by name
- Create a table: name, partition key, optional sort key (String, Number or Binary), on-demand capacity
- Add global secondary indexes when you create a table (every attribute is projected)
- Encryption at rest: owned by Amazon DynamoDB, AWS managed key (
aws/dynamodb) or a customer managed KMS key - Delete one or more tables
- Table page header: keys, item count, stream on/off, Copy ARN, and a "Stack: X" link to the CloudFormation stack that made it
Items
- Scan or Query the table or any GSI / LSI from the Scan or query items form
- Query by partition key value, with an optional sort key condition (
=,<,<=,>,>=, Begins with, Between) and Sort descending - Filters on any attribute:
=,≠,<,<=,>,>=, Begins with, Contains, Between, Exists, Not exists; String, Number or Boolean values - Results load 50 at a time with Load 50 more; a summary line shows what ran and how many items came back
- Columns follow the attributes of the items on screen, keys first
- Create item, Edit, Duplicate (copy with a new key) and Delete items in a JSON editor
- Switch the editor between plain JSON and DynamoDB JSON; items with sets, binary values or very large numbers open in DynamoDB JSON
- Import a
.jsonfile (up to 10 MB) in DynamoDB JSON or plain JSON; the whole file is checked before anything is written, and items with an existing key are overwritten - Export every item of the table to a DynamoDB JSON file
Settings tab
- General information: keys, item count, created date, ARN, encryption key (links to KMS)
- Connect card with Node.js and Python code samples (put and get an item) for this table
- Indexes table: name, type (GSI / LSI), keys and projection
- Time to Live (TTL): turn on or off and choose the Number attribute that holds the expiry time (Unix seconds)
- Stream: turn on or off and choose the data in each record (new and old images, new image, old image, keys only); the stream ARN is shown to copy
- Lambda triggers for the stream: see the functions that read it, their state, batch size and starting position, and Add trigger
Typical workflow
- On Tables, choose Create table, enter a name and partition key, then Create table.
- On the Items tab, choose Create item (or Import a JSON file) to add test data.
- Choose Query, enter a partition key value and choose Run to check what your app will read.
- On the Settings tab, Edit the Stream to turn it on, then Add trigger to run a Lambda function on every item change.
Works with
- AWS Lambda: stream triggers run functions when items change
- AWS KMS: encrypt a table with a customer managed key
- AWS CloudFormation: the table page links to the stack that created it
- AWS AppSync: tables can back DynamoDB data sources
- AWS Step Functions: task states that use a table link to it
Limitations
- Floci deletes expired TTL items every 60 seconds; until then they can still be read.
- Changing the stream's record data turns the stream off and on again, so its ARN changes and Lambda triggers on the old stream must be added again (the console warns you).
- Indexes can only be added when the table is created.
- Floci stores the table's KMS key but ignores its state: a disabled key keeps working.