How to Create DynamoDB database on Amazon Web Service(AWS).

 

DynamoDB is an Amazon Web Services database system that supports data structures and key-valued cloud services. It allows users the benefit of auto-scaling, in-memory caching, backup and restore options for all their internet-scale applications using DynamoDB.

DynamoDB is the Serverless NoSQL Database offering by AWS. Being Serverless makes it easier to consider DynamoDB for Serverless Microservices since it goes inline with the patterns and practices when designing serverless architectures in AWS.

 

  • Login to aws portal.
  • Click on Services.

 

Fig 1

 

  • Click on DynamoDB.

 

Fig 2

 

  • Click on Create Table.

 

Fig 10

 

  • Provide Table name.
  • Provide Primary Key.The primary key uniquely identifies each item in the table, so that no two items can have the same key. DynamoDB supports primary keys.
  • We can select table setting default or provide the table setting.

 

Fig. 3

 

  • Add the secondary index.
  • Click on Add index.

 

Fig. 4

 

  • Provide the Partition Key & Index name.
  • Click on Add index.

 

Fig. 5

 

  • Select Read/Write capacity mode.

 

Fig. 6

 

  • Provide Auto Scaling Details.

 

Fig. 7

 

  • We can encrypt the DynamoDB using KMS.
  • Click on Add tags.

 

Fig. 8

 

  • Provide the key name & value for DynamoDB.
  • Click on Create.

 

Fig 9

 

  • After sometime DynamoDB is ready.

 

Fig 10

Create DynamoDB using Shell

aws dynamodb create-table –table-name table-name –attribute-definitions AttributeName=attribute-name,AttributeType=attribute-type –key-schema AttributeName=attribute-name,KeyType=HASH AttributeName=attribute-name,KeyType=RANGE –provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 –tags Key=tag-name,Value=tag-value

 

Leave a Reply

Your email address will not be published.