Help › Connect to databases
Connect to Amazon DynamoDB
Connect to a region's DynamoDB tables with your AWS sign-in or an access key, or to DynamoDB Local, and what Querlyn shows of a table.
Querlyn 0.1.0 is not released yet. This help describes it ahead of release.
A DynamoDB connection is one AWS region of one account. The sidebar lists the region's tables; a table opens in an items tab, where you read its items by key or by scanning (see Browse a DynamoDB table's items), and a query tab takes PartiQL instead of SQL (see Run PartiQL on DynamoDB).
Querlyn talks to DynamoDB's own API over HTTPS, through the same routes as any other database: directly, through SSH, Kubernetes or AWS Systems Manager. Every request is signed on this computer; your secret access key is never sent.
Warning: DynamoDB bills for what is read. Querlyn reads nothing when a table opens, reads a page at a time as you scroll, and says before a read whether it is a query by key or a scan of the whole table. See What a read costs.
What you need
- The AWS region the tables are in, such as
us-east-1. - An AWS identity that may use DynamoDB there: a profile in
~/.aws, AWS IAM Identity Center (SSO), credentials in the environment, or an access key ID with its secret access key. - To list tables, the identity needs
dynamodb:ListTables. Without it Querlyn still connects, and says so; tables you may read open by name in a query tab.
Fill in the dialog
- Choose and, under Database engine, Amazon DynamoDB (under Key-value).
- Type the Region. There is no host or port to fill in: the address follows from the region.
- Leave Endpoint empty for AWS.
- Under Authentication, choose how to sign in:
- AWS IAM uses your AWS credentials as the AWS tools find them:
the environment's variables, the profile named in AWS profile
(or the default one), SSO, or a
credential_process. Nothing is saved in Querlyn, and temporary credentials are fetched again when they run out. Sign In checks the sign-in now. Requests are signed for the connection's Region. - Access keys takes an Access key ID and its Secret access key. The secret is kept where you choose under Where the secret access key is kept: the system keychain, a secret manager, or asked for each time. It is never written to Querlyn's own database.
- AWS IAM uses your AWS credentials as the AWS tools find them:
the environment's variables, the profile named in AWS profile
(or the default one), SSO, or a
- Choose , then Save & Connect.
AWS's own endpoint is always reached over HTTPS with its certificate and host name verified, so the dialog has no TLS choice until you give an Endpoint of your own. Querlyn refuses to send a signed request to an AWS address whose certificate it did not check.
DynamoDB Local and other endpoints
To use DynamoDB Local, a VPC endpoint or a proxy, write its URL in
Endpoint: http://localhost:8000 for DynamoDB Local as it starts by
default. A URL that begins with http:// turns TLS off for that
connection; one that begins with https:// is verified like AWS. With an
endpoint the dialog shows TLS and, under Verify full, the CA
certificate for a proxy with a certificate of your organization's.
The Region is still needed: requests are signed for it. DynamoDB Local
accepts any access key, so choose Access keys and type any Access key
ID and Secret access key; DynamoDB Local keeps separate tables for
each access key and region unless it was started with -sharedDb.
Note: AWS IAM sign-in needs TLS, because temporary credentials carry a
token that works like a password. Over http:// use Access keys.
Settings for cost
- Ask before a scan says when Querlyn asks before a read that scans a whole table: On Production (connections whose environment is Production), Always or Never. It says that a read is a scan before it runs either way.
- Attribute sample is how many items Querlyn reads from a table when
its details are first needed, to learn the names of its attributes
beyond the key: 25 unless you change it, 100 at most. DynamoDB itself
knows only the key attributes.
0reads none; completion and the sidebar then show the key attributes and the attributes of items you have loaded since Querlyn started.
What the sidebar shows
Tables lists the region's tables. Open a table to see:
- Its attributes: the partition key and the sort key first, marked as such, then the key attributes of its indexes, then the attributes seen in items, each with the types seen (string, number, binary, boolean, null, map, list and the three kinds of set).
- Indexes: its global and local secondary indexes with their keys and what they hold.
- Properties: the billing mode, about how many items it holds and how large it is (DynamoDB counts about every six hours), the attribute items expire by when time to live is on, its stream, table class, deletion protection and when it was created.
Reading these costs nothing: DynamoDB describes a table without reading its items. Only the attribute sample reads items.
What is not there
Querlyn does not create, change or delete tables or indexes, turn time to live on or off, or read IAM policies; use the AWS console or tools for those. Transactions, batches, DynamoDB Streams and DAX are not used. Explain, the table designer, compare, import, backup and the other features that write SQL do not apply; see Databases and features.
Querlyn's DynamoDB support was built and tested against DynamoDB Local and a stand-in for the service, not against AWS itself. See Known limits.
Help for Querlyn 0.1.0. All help topics