Step 2: Create Lambda and API Gateway (Nodejs) — AWS Serverless to DynamoDB

Aug 26, 2018 · 3 min read

Create API Gateway

The “Lambda function” will fill after creating Lambda.

Create Lambda

Role: Create new role from template(s)

Role name: dynamodb_read

Policy templates: Basic Lambda@Edge permissions (for CloudFront trigger)

IAM Setting

  1. Go back to DynamoDB Service
  2. Select your table and Get the ARN

The DynamoDB will appear on the Designer section in Lambda.

We use the Nodejs to connect the dynamoDB.

Region: the location of the dynamoDB, the region code can find in the ARN.


TableName: the table name of the dynamoDB — dynamodb

Remember to “Save”

Remember to “Add” and “Save”

You can give me the response for support if you completed the lab or ask me questions when you face any difficulty.

Check following story to review the lab.

Create DynamoDB — AWS Serverless to DynamoDB

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade