All Questions
Tagged with aws-api-gateway amazon-dynamodb
281 questions
0
votes
0
answers
29
views
AwsIntegration write to DynamoDB SerializationException
I have the following code which takes a POST input and writes the data in a DynamoDB table.
It works if I don't add the validation to check if the key:value pair exists.
Here is the code:
const ...
1
vote
2
answers
175
views
Can I connect a Replit web application to AWS DynamoDB, and should I use APIs or the AWS SDK?
I’m new to Replit and couldn’t find a clear answer in the documentation. I would like to build a web-based application on Replit that uses AWS DynamoDB as the primary data store.
My main questions are:...
1
vote
1
answer
72
views
Removing attribute values from Dynamodb getItem response
I have create an direct connection from API gateway to DynamoDB using the AwsIntegration.
It works but the problem is that I get all the attribute values
{
"Item": {
"properties&...
2
votes
1
answer
126
views
How to Dynamically Set dynamodb:LeadingKeys Condition with JWT Claims in AWS Lambda Function Using Serverless Framework for FineGrained Access Control
I'm working on a proof of concept (POC) for implementing fine-grained access control in DynamoDB using the dynamodb:LeadingKeys condition. I have a Node.js Lambda function that performs CRUD ...
1
vote
0
answers
67
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
194
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
49
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
1
answer
33
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
30
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
49
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
148
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 ...
1
vote
0
answers
337
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
329
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 ...
0
votes
1
answer
424
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
404
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, ...