All Questions
Tagged with amazon-dynamodb aws-api-gateway
282
questions
1
vote
0
answers
23
views
How to validate query parameters passed to AWS API gateway?
I have an API deployed to REST API gateway.
My endpoint is https://<gateway-id>.execute-api.<region>.amazonaws.com/<stage>/items?pageSize=10. This endpoint is integrated directly to ...
1
vote
1
answer
36
views
How to get recent entries from Dynamo DB
We have a table in Dynamo DB, attributes to be saved are as below.
ProcessId - kept this as partition key, unique for each entry
CreatedDate(time of insertion)
Filename
other random attributes
We ...
0
votes
0
answers
27
views
An operand in the update expression has an incorrect data type for Dynamodb Update Integration with ApiGateway
I cant seen to find out whats wrong here
I have tried changing the path variables still not working, I have also tried to manually set the values for total votes.
requestTemplates: {
...
0
votes
0
answers
26
views
DynamoDB Filter-Expression Not Returning Any Results
I have a dynamodb table with one entry. Using API gateway I am making a call to a lamda function that should handle the DB requests.When using curl command curl {api link}/items/test I don't get any ...
0
votes
0
answers
28
views
REACT AWS - Response to preflight request doesn't pass access control check: It does not have HTTP ok status
I am creating a recipe storing application. I am using REACT fro the front end then am using AWS Api gateway, Lambda and dynamo DB for api call, evocation and storage.
I have managed to get POST, GET ...
0
votes
1
answer
28
views
Modify Object in DynamoDB without conflicts in Lambda function
I have example Objects of this interface:
interface Car{
id: Number;
name: String;
tires: Wheel[]
}
interface Wheel{
id: Number;
name: String;
radius: Number;
}
I need to store these Car Objects in ...
0
votes
1
answer
27
views
Issue creating Item in DyanmoDB table using Lambda function
I'm trying to create an item in DynamoDB table using Lambda function using random number generation. I can't use Put-Item function and it has to be generated using random_number generation.
`
import ...
0
votes
1
answer
37
views
API GET Fails When Retrieving Data from Dynamodb
I can do a successful PUT request, but all my GET requests keep failing.
I either get the below if I specify a path parameter
"An error occurred (ValidationException) when calling the GetItem ...
0
votes
1
answer
94
views
Show every item in a DynamoDB database in a Flutter app (Dart)
I have a Flutter app which is written in Dart that will become an Android and iOS app. I have a table in a DynamoDB on AWS that I want to show every entry in that table in the Flutter app. It will ...
0
votes
0
answers
54
views
AWS Lambda Key Error on testing. API Gateway POST method shows no message found
I am trying to build a server-less contact form using AWS Lambda, AWS API Gateway, Amazon SNS, and AWS Dynamodb. I have a web page which takes name, email and phone number as the form input. I am ...
0
votes
0
answers
54
views
Problem with API-Gateway GET method and Lambda function
I am using swift UI for a stories app in which a user once logged in via the Cognito can read a story on the app screen. The user can also like the story for which I am using Dynamodb table, API ...
1
vote
0
answers
247
views
Use Stripe webhooks and AWS API Gateway + Lambda to update flag in DynamoDB table
I have a website with a submission form that writes to a DynamoDB table and sets a default "Paid" flag to false.
This is a snippet from the frontend to give you a sense of the field names:
...
0
votes
1
answer
165
views
How can I modify a DynamoDB query using an API Gateway mapping template?
I am using an APIGW to proxy Dynamo requests.
The aim is to intercept queries and add on some fixed filtering expressions.
I am using a mapping template to do this but getting stuck with the template ...
-1
votes
1
answer
285
views
How can i convert string value from path param to int in Mapping templates of aws api gateway
I try to using api gateway and query data direct to dynamo db.
I has epoch time in path param and i tried to minus epoch by one day to query data in dynamodb but it not work. I tried convert by ...
0
votes
0
answers
241
views
Error when testing lambda statusCode":400,"body":"\"Unsupported route: \\\"undefined
I am attempting to do this as a home lab https://catalog.us-east-1.prod.workshops.aws/workshops/2c8321cb-812c-45a9-927d-206eea3a500f/en-US/080-test-your-api.
I got it working by using the AWS Console, ...