From the course: Vector, Graph, and DynamoDB

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Create a table with the CLI

Create a table with the CLI

- [Instructor] In order to create a table, you can use the AWS CLI for DynamoDB. And we can see here the command is first up AWS DynamoDB. Next we put in the option create-table, and this is what we need to do to create the table. Here you would then put in what the name of the table would be, so --table name customers, also put what you're going to need the structure to be, so this would be the attribute. In this case it would be customer id, the key schema in this case, the key schema would include the customer id. And then what is the provisioned throughput? So let's go ahead and grab this whole command, put this in, paste it, and now we can see that it was actually successfully created. One of the things you can do as well, is go to your AWS toolkit, which is right here. If we go down to resources, we can see DynamoDB, and we now have this customer's table right here. And you can see that it is doing all of the things that we told it to do when it was created.

Contents