Skip to content

Latest commit

 

History

History
 
 

MonoToMicroDynamoDB

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

DynamoDB Setup (~10 min)

Using microservices architecture gives you freedom to choose different technologies for your implementation. We will use DynamoDB as our database for our shopping cart microservice. DynamoDB is fast key/value store which can hold shopping cart information and enable quick reads and writes.

Step1: DynamoDB deployment using CloudFormation

1.1 Download CloudFormation template from here and save it locally

Save file name: MonoToMicroDDBCF.ymal

1.2 Log into your AWS console.

1.3 Navigate to CloudFormation.

1.4 Click Create stack to start the process.

1.5 Select Template is ready with Upload a template file and load the file downloaded on step 1.1

1.6 Click Next.

1.7 Enter a name for the stack, e.g. MonoToMicrDDB

1.8 Click Next to skip the stack configuration options, as we will use defaults in this section.

1.9 Review the details for creating the stack and click Create Stack.

1.10 The CloudFormation stack creation process will take 3-4 minutes to complete.

1.11 Once the stack creation process completes, you should see the following CREATE_COMPLETE message.

1.12 Click on the Outputs tab and take note of these values.

RoleForLambda: This is the IAM role that will be used with our Lambda function.