Skip to content

Amazon DynamoDB

DataKlin connects to Amazon DynamoDB and to DynamoDB Local through its built-in DynamoDB connector. It signs in with the AWS credentials you choose in DataKlin, or with no credentials for DynamoDB Local on your computer, such as at http://localhost:8000, and nothing secret is saved with the connection. AWS endpoints use https, and http is accepted only for an endpoint on your computer.

Supported versions Amazon DynamoDB and DynamoDB Local

  • AWS credentials
  • Query and Scan builder
  • PartiQL completion
  1. Open New Connection. Click New Connection in the header of the Database Explorer, choose File › New Connection…, or press Ctrl+K, then Ctrl+N (Cmd+K, then Cmd+N on macOS). Getting started lists every way to open it.

  2. Choose Amazon DynamoDB. Type dynamo in Search connectors… and press Enter, or double-click Amazon DynamoDB.

  3. Set the Region and endpoint. Enter the Region of your tables, such as eu-west-1. Leave Endpoint URL empty for AWS, or enter the address of DynamoDB Local.

  4. Choose the credentials. Open Security and choose the Authentication method. See Authentication and TLS.

  5. Test the connection. Click Test connection. When it works, the Region and the number of tables show beside the button. When it doesn’t, the reason shows, with Copy details. Once the connection is saved, Show Connection Log shows the full log.

  6. Save. Click Save, or Save and connect to connect at once. The connection appears in the Database Explorer.

The New connection dialog for Amazon DynamoDB in DataKlin, with the connection's name, folder and server fields filled in

The Connection section at the top (Name, Folder, Environment and a color) is the same for every database: see Getting started. The Server fields below are DynamoDB’s own, and Options is the collapsed section at the bottom of the dialog.

FieldWhat it doesDefaultExample
RegionRequiredThe AWS Region of the tables, such as eu-west-1. At most 64 characters.Noneeu-west-1
Endpoint URLLeave empty for AWS. DynamoDB Local or another compatible endpoint, such as http://localhost:8000; http:// only for this computer. At most 2,048 characters.Nonehttp://localhost:8000

The first table is DynamoDB’s own options. The second is the options every connection has.

FieldWhat it doesDefaultExample
Max attemptsHow often a request is tried before a throttling or transient error is reported, the first try included (standard retry mode). From 1 to 10.35
Page sizeItems asked for per request. From 1 to 1000.100200
Scan budgetThe most service pages a filtered scan reads per fetch before it stops and asks you to fetch more. From 1 to 1000.1020
Confirm scans over (MiB)A full or filtered scan of a table larger than this asks first. On a protected connection every full scan asks. From 1 to 104857600.1024512
FieldWhat it doesDefaultExample
Read-onlyMark this connection as one that should not change data. DataKlin then refuses writes and schema changes before they reach the database. Choosing a protected environment, such as Production, ticks it for you.OffOn
Disconnect when idleClose this connection after it has sat unused. Reconnects on your next action. Choose Use default, Never, or After… and a number of minutes.Use defaultNever

Scan budget and Confirm scans over (MiB) work with the browse bar, described in Good to know: the budget caps how much a filtered scan reads before it stops and waits for you, and the confirmation threshold decides which scans ask first.

Open Security to choose how DataKlin signs in. The Authentication method is one of:

  • AWS credentials: the AWS credentials DataKlin resolves for you, from a profile, IAM Identity Center (SSO), an assumed role or access keys. See AWS credentials. They are never stored with the connection.
  • Local (no credentials): for DynamoDB Local. DataKlin accepts it only when Endpoint URL is on this computer, such as http://localhost:8000.

DynamoDB has no TLS mode. An AWS endpoint always uses https, and DataKlin accepts an http:// endpoint only for a loopback address, where nothing leaves your computer.

No AWS account to hand? Start DynamoDB Local in Docker:

Terminal window
docker run --name dataklin-dynamodb -d -p 8000:8000 \
amazon/dynamodb-local:3.3.2 \
-jar DynamoDBLocal.jar -inMemory -sharedDb

Then connect with these values:

Field Value
Region us-east-1
Endpoint URL http://localhost:8000
Authentication method Local (no credentials)

DynamoDB Local starts with no tables. Create one with the AWS CLI, using --endpoint-url http://localhost:8000. When you’re done, remove the container with docker rm -f dataklin-dynamodb.

  • The browse bar opens in Query mode. Open a table or an index and the bar asks for a partition key. Give it a key and DataKlin runs a Query, which reads only that partition. Switch to Scan to read the whole table.
  • A filter without a key is a filtered Scan. If you give a Query only a filter, DataKlin runs a Scan that reads every item and filters afterwards. It reads up to Scan budget pages at a time, then stops and waits for Fetch more.
  • Full scans ask first. A scan of a table larger than Confirm scans over (MiB) asks before it runs, with an estimate of the read capacity units (RCU) it will use. On a protected connection every full scan asks. Plain browsing, a Query or the empty builder, never asks.
  • Edits are conditional. Each change to an item is conditioned on the attributes you changed still holding the values you saw, so DataKlin doesn’t overwrite another writer’s change.
  • PartiQL completion. The console completes table, index and attribute names as you type. It never reads items to find them, so it spends no read capacity.
  • Read-only connections. On a read-only connection, DataKlin refuses writes. See Read-only connections.