Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a database in DynamoDB

I'm very new to DynamoDB. While reading the documentation, I've seen the following sentence:

In Amazon DynamoDB, a database is a collection of tables. A table is a collection of items and each item is a collection of attributes.

Nevertheless, all I can found are methods to play with tables, items and attributes, and nothing is said about how to create a database.

So my questions is: is it possible to create databases within my user account, or are all the tables created within a "common shared default" database (i.e. my user account is the unique "database")?

It would be very useful for me to create, somehow, subsets of tables around the concept of a "user/tenant". Of course, this is something that could be managed by my application logic, however, my users would require a more clear/secure data isolation.

Anyway, as said, very new to DynamoDB and most probably I'm missing a lot of things.

like image 747
frb Avatar asked Nov 11 '15 16:11

frb


People also ask

Can we create database in DynamoDB?

To create a new Music table using the DynamoDB console: Sign in to the AWS Management Console and open the DynamoDB console at https://console.aws.amazon.com/dynamodb/ . In the navigation pane on the left side of the console, choose Dashboard.

Is DynamoDB SQL or NoSQL?

DynamoDB is a proprietary NoSQL database by Amazon that supports key-value and document data offered via the Amazon Web Services. This AWS cloud-only offering provides a scalable, highly available, and secure managed database platform for any application.

How DynamoDB is built?

DynamoDB uses hashing and B-trees to manage data. Upon entry, data is first distributed into different partitions by hashing on the partition key. Each partition can store up to 10GB of data and handle by default 1,000 write capacity units (WCU) and 3,000 read capacity units (RCU).


1 Answers

Yes, there is no specific "database", all the tables are just under your aws account. Using some form of naming convention might be the best option if you need some kind of namespacing.

like image 126
jpschroeder Avatar answered Sep 18 '22 10:09

jpschroeder