Using AWS API Gateway and Dynamodb for a simple api

ephotopros · 45K views · 2016 · 12:45

Open on YouTube

Cloud, DevOps & reliabilityWeb developmentDatabases & storagetutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as a worked example for exposing DynamoDB through API Gateway as a proxy, and for debugging their own GET and query setups.

Recommended by 2 people across 2 different months, 2017 to 2020.

What it is

A 12-minute screencast showing how to build a simple serverless REST API on AWS by putting API Gateway in front of a DynamoDB table, with an IAM role and policy for access. The presenter walks through the setup and the integration configuration in the AWS console.

What people said

Recommends DavidGetter · 2020-01 · Stack Overflow · on “efficient way to display data in flutter app from a python script”

I managed to do it by creating an api via API Gateway from AWS. Now I can call http requests to the created API via flutter app. I followed this [this video] tutorial.

Recommends vijtrip2 · 2020-05 · Stack Overflow · on “Api gateway get item dynamodb configuration”

I followed these two tutorials and performed get on my dynamoDB table. My table has primary key name "pk". Tutorials: Video [this video] & Blog [LINK] If i write my dynamo request body like yours it does not fetch any record { "TableName": "apiG", "Key": { "pk": { "S": "key1" } } } But if I form my request like { "TableName": "apiG", "PrimaryKey": "pk", "KeyConditionExpression": "pk = :v1", "ExpressionAttributeValues": { ":v1": { "S": "key1" } } } I get the desired response from dynamoDB. Your error looks like you have some mix up in your integration response and method response. In the simplest form, keep your method response as default i.e. "HTTP Status: 200 Models: application/json => Empty" a

Cites FU USF · 2017-08 · Stack Overflow · on “Creating API as proxy to DynamoDB”

I am following this tutorial ( [this video] ) to create a webservice using dynamoDB and API gateway as a proxy. I managed to get until the final step where after I have created my get method, i ran a test to test my service. However, i got this error : { “__type”: “com.amazon.coral.validate#ValidationException”, “message”: “ExpressionAttributeValues contains invalid value: One or more parameter values were invalid: An AttributeValue may not contain an empty string for key :v1” } Cant seem to find out what the issue is and wanted to ask if anyone encountered this error