All Questions
22 questions
1
vote
2
answers
177
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:...
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 ...
-5
votes
1
answer
679
views
Lambda function not pushing data into DynamoDB table
I'm running a NodeJS lambda function which is triggered by API Gateway.
My goal is to push the data and then send a status response. I think the lambda stops running before the insertData function ...
0
votes
1
answer
3k
views
ValidationException: The provided starting key is invalid - What to put in ExclusiveStartKey - dynamodb
I am working with nodeJS, dynamo db and AWS API gateway, where I am new to dynamo db,
The requirement is of converting the response into pages, using pagination in my code,
so that from each API call, ...
0
votes
1
answer
604
views
Getting error response = null from api gateway and dynamoDb
{
"error": "Cannot read property 'playerId' of null"
}
I have created a list lambda function
that passes in a playerId. This playerId is used like so.
export const main = handler(...
0
votes
1
answer
8k
views
Dynamo DB query fails through axios with Value null at 'tableName' failed to satisfy constraint
I am making a query to DynamoDB via API Gateway and from Postman the request succeeds with 200 OK, however through Axios (in a VueJS client) the code (as exported from Postman) fails with this error:
{...
2
votes
1
answer
5k
views
How to put items into DynamoDB table using lambda(node.js)?
I have deployed API Gateway, Lambda and DynamoDB using SAM. The code for the lambda function is given below-
var AWS = require('aws-sdk');
exports.handler = async (event) => {
try {
...
1
vote
1
answer
395
views
How to deploy API gateway, Lambda(Node.js) and DynamoDB using SAM CLI?
I am trying to create an application in my local system and deploy it to the AWS cloud using SAM CLI. The basic outline of this application is given in the diagram.
I have created a directory named ...
0
votes
1
answer
393
views
AWS Lambda function to Retrieve a DynamoDB column by passing primary key as a parameter
I am trying to retrieve values from DynamoDB when passing the primary partition key as the parameters in the URL.
I have a table with two columns:
movie id
movie name.
I want to be able to pass ...
0
votes
1
answer
2k
views
put an array of object into dynamoDB
I have an API which receives this JSON:
{
"name": "Mar/19",
"month": "3",
"year": "2019",
"credit": [
{
"name": "Income salary",
"value": "6500"
...
3
votes
1
answer
2k
views
Postman call to AWS API Gateway to trigger AWS lambda function not working
I have created an api, when called, triggers the lambda function, written in nodejs, to take the json(array of objects) and insert the data into dynamodb. For each object in the array, the function ...
0
votes
1
answer
2k
views
"One or more parameter values were invalid: Missing the key studentId in the item"
I'm using serverless to expose HTTP request in getwayapi, lambda function and dynamodb but got an error "One or more parameter values were invalid: Missing the key studentId in the item".
Please help ...
0
votes
1
answer
131
views
The provided key element does not match the schema - only thru API Gateway
I am having an issue with a Lambda function that updates DynamoDB. I have been thru so many iterations of the code, but I am down to this one that does not make sense. This code works in Lambda thru ...
0
votes
1
answer
45
views
API works randomly while putting data into dynamoDB
I'm trying to put data into Dynamodb using serverless deployment. I have added the permission to write to Dynamodb.
The api is always sending {"message": "Internal server error"} but is able to put ...
2
votes
2
answers
367
views
DynamoDb scan Returning all data on Local but not On Live
I used the recursive calls to get data more then 1 mb data from the dynamodb using this
params.ConsistentRead = true;
let projectCollection = [];
dynamoDb.scan(params, onQuery);
function ...