Schema and infrastructure
Creating tables
Create a DynamoDB table from the sidebar with a partition key, an optional sort key and attribute types. Tables are created in on-demand billing mode.
The Create Table dialog
Click + in the sidebar header. The dialog is a single form; fields are cleared each time it opens and the cursor lands in Table Name.
- Table Nametextrequired
- Follows AWS rules: 3 to 255 characters from letters, numbers, underscore, dot and dash.
- Partition Keytextrequired
- The attribute name of the hash key.
- Typeselect
- String, Number or Binary for the partition key. Default String.
- Sort Key (optional)text
- Add a range key to model one-to-many relationships under one partition.
- Typeselect
- String, Number or Binary for the sort key.
- Name the table and its keys
Both the name and the partition key are required; the dialog says so if either is missing.
- Click Create Table
DynamoOps issues
CreateTablewithBillingMode: PAY_PER_REQUESTand shows “Creating table <name>...”. The sidebar refreshes a moment later. - Wait for ACTIVE
New tables start in CREATING. Open the Dashboard to watch the status, or refresh the sidebar after a few seconds.
What is set, and what is not
- Billing mode is always on-demand. Switch to provisioned capacity in the AWS Console or with IaC if you need it.
- Secondary indexes are added afterwards with the Index manager.
- TTL, Streams, encryption settings, tags, point-in-time recovery, table class and deletion protection are not configured by the dialog; set them in AWS or in the exported IaC.
Design once, export forever
Create the table here to prototype quickly, then use Export Schema to capture it as Terraform, CloudFormation or Pulumi for your infrastructure repository.AWS errors such as a name already in use are shown inline in the dialog with the original message.
Related
Index manager (GSI)
Inspect the primary key, local and global secondary indexes of a table, create new global secondary indexes with any projection, and delete the ones you no longer need.
Truncating and deleting tables
Clear every item while keeping the table, or remove the table entirely. Both actions require typing the table name to confirm and cannot be undone.
Export Schema (IaC)
Turn a live table into infrastructure code. Copy its schema as CloudFormation YAML, Terraform HCL or Pulumi TypeScript, including attributes, keys, GSIs, LSIs and TTL.