How To Create DynamoDB Table in AWS [Easiest Way]
To create a DynamoDB Table using Dynobase, click '+' sign in the bottom left corner.
Fill out the form. Set table name, indexes, optionally global secondary indexes and select capacity mode. If going with provisioned mode, set WCU and RCU.
Click 'Create Table'. After less than 10 seconds, your table should be ready to use!
Frequently Asked Questions
What is a DynamoDB table?
Table is the very basic container of data in DynamoDB. It's basically a collection of items/records. It's very similar to the traditional SQL table.
How much does a DynamoDB table cost?
Setting up table in On-Demand mode is completely free! You're billed on per-request basis, plus, the amount of data you store in the table. To get more detailed quota, use our DynamoDB Pricing Calculator
What are the different ways I can use to create a DynamoDB table?
If you don't want to use Dynobase to create your tables, Dynobase outputs DynamoDB Create Table template next to the form. You can use that output in other frameworks and libraries like AWS CloudFormation, AWS CDK, Serverless Framework, AWS SAM or even Terraform. Alternatively, you can use the AWS Console.
Do you need to design your schema in DynamoDB?
No. You only need to design primary and secondary key(s). It means setting attributes that are going to be used as keys and their type.
Does DynamoDB have schema?
Yes. You don't have to define columns upfront. The only required attributes in your objects is the partition key and optionally a sort key if one has been defined during table creation.
How to create DynamoDB table locally?
Select an offline profile and follow the same steps. If you want to do that using CLI or SDK, change the service endpoint to localhost:{port} (8000 for DynamoDB-local and 4569 for LocalStack). Find more about DynamoDB Offline and Dynobase here
Is it ok to create two DynamoDB tables?
Yes, this is perfectly fine. Even though AWS says that most well-designed applications require only one table, it requires the single-table design.