All Questions
13 questions
0
votes
1
answer
53
views
Insert/Update Lambda works but calling it from API GW fails as the payload is being passed
I've got a Dynamo DB table:
Partition key: FingerPrint (String)
Sort key: IpAddress (String)
LastUpdated (Number)
TimesUpdated (Number)
Votes (string)
And I have this Lambda to insert or update items:...
0
votes
1
answer
388
views
How to send AWS DynamoDB Stream from Lambda to API Gateway to Front end?
I have a dynamodb stream triggering a lambda function. The lambda function is receiving information successfully returning it like so:
return {
statusCode: 200,
body: "data: " + JSON....
1
vote
2
answers
684
views
Mocking a connection call to AWS DynamoDB in sinon
I have an endpoint in API Gateway which is mapped to a Lambda function in AWS. While writing test cases for the new handler function of the endpoint, I do not want the spec file to call the actual API ...
0
votes
0
answers
161
views
Problem in AWS Tutorial: Build a Basic Web Application
I have completed the tutorial AWS - Build a Basic Web Application, multiple times, and I am getting the same error on the very last step. When I 'test the updated web app' by entering a First Name, ...
2
votes
1
answer
3k
views
ValidationException: ExpressionAttributeValues contains invalid key
I'm trying to filter the results of a scan of a DynamoDB table using a FilterExpression in my query. I'm using a Lambda function deployed on API Gateway on AWS.
Function Querying the Endpoint
// Scan ...
1
vote
2
answers
585
views
Aws Api gateway/Lambda python dynamodb works with postman but doesn't with webpage
I have a lambda_function.py
import json
from dynamodb import put_user
def lambda_handler(event, context):
data = json.loads(event["body"])
username = data["username"]
age = data[&...
0
votes
1
answer
841
views
AWS - Lambda execution fail
i'm relatively new to coding. So I'm sorry if there are already 100 posts from this.
My problem is the following: I want to simply query my DynamoDb using Lambda and Api Gateway.
Unfortunately I get ...
0
votes
1
answer
2k
views
API Gateway error (ValidationException: ExpressionAttributeValues must not be empty) when trying to update DynamoDB entry
I am new to AWS and am trying to set up the back end for my buddy's website. I am able to 'get' entries from my database (called 'isThrowingTable') but am unable to 'put' updates into it. I run a ...
1
vote
1
answer
1k
views
How to enable Free Lambda/DynamoDB Caching
Problem Description
I created a simple REST API using AWS Lambda and I'm saving the data in AWS DynamoDB (all using Serverless framework). The latter is defined as PAY_PER_REQUEST. Currently, the ...
0
votes
1
answer
4k
views
AWS-Lambda I get an error message " MissingRequiredParameter: Missing required key 'Data' in params" but have no 'Data' parameter called
I am trying to use AWS-Lambda to post data throught AWS-api gateway onto a client-side web-page but I am stuck on the above error message. When run the function run the database is displayed but then ...
0
votes
2
answers
948
views
Unable to post to DynamoDB using axios
So I'm currently trying to post data to my DynamoDB using API Gateway. When I test it out, it comes back as a 200 status - but my DynamoDB is never updated.
Here is my axios post request:
axios....
0
votes
3
answers
422
views
AWS Lambda sequential problem using DynamoDB
I'm trying to implement a function which is called by API Gateway. It gets passed a email address+password, then checks if the Email address is already in use. If thats not the case it should be put ...
0
votes
0
answers
453
views
API Gatway proxy response when using ExclusiveStartKey
Consider this example from docs for Amazon DynamoDB, here we have:
dynamoDb.scan(params, onScan);
function onScan(err, data) {
if (err) {
return;
} else {
...