Issue How can I pass the event to the toDoArray? I’m not sure what I’m missing. Any help appreciated. SDEventModel.h @interface SDEventModel : AWSDynamoDBObjectModel <AWSDynamoDBModeling> ViewController.h @property (nonatomic, strong) NSArray *toDoArray; ViewController.m if (task.result) { AWSDynamoDBPaginatedOutput *paginatedOutput = task.result; for
Continue readingTag: amazon-dynamodb
Unable to find storage information for property [TableName]
Issue I am following what I understand is the correct way to do object mapping when pulling from the DynamoDB Database. My issues are that when I do the DyanmoDBContext.Scan function it throws the following exception(as seen below) Exception thrown:
Continue readingAWS DynamoDb fails when accessed from EC2 instance with Spring data
Issue Hy guys, when I run my Spring Boot 2 project from my local machine (Ubuntu) is all fine but when I tried to access DynamoDb tables from my Spring Boot 2 project running on EC 2 instance I received
Continue readingUsing a variable in ng-repeat and passing it to a controller
Issue I have created an AngularJS app that contains two columns: one for a menu and a second for content (each link in the menu links to). The content and menu is in a table in DynamoDB that I am
Continue readingDynamodb query with GSI and filter expression on non partition key and sort key columns in nodejs
Issue I have a GSI on my table and am using that GSI for querying results. Am using a filter expression as well const active_cases = await storesMonthlyAudit(); console.info("actives cases : ", active_cases) async function storesMonthlyAudit() { const params =
Continue readingResource not found querying dynamodb
Issue I am trying to access a DynamoDb table, but I keep getting a "Resource not found" error. The table is defined as follows, note that the table is Active and the Region is Paris (eu-west-3) The code I am
Continue readingHow do I batch delete with DynamoDB?
Issue I am getting an error that “The provided key element does not match the schema”. uuid is my primary partition key. I also have a primary sort key for version. I figured I can use batchWrite (docs) to delete
Continue readingDynamodb DB scan: Filter on embedded object in array
Issue Trying to be able to filter on embedded object that looks like: "posts": [ { "id": "10e85cf7-acd2-417b-a5dc-1dfb6de606bf", "references": [ { "type": "URL", "title": "How to get dynamodb to only return certain columns", }, { "type": "HASHTAG", "title": "#dynamodb", },
Continue readingQuery condition missed key schema element : Validation Error
Issue I am trying to query dynamodb using the following code: const AWS = require(‘aws-sdk’); let dynamo = new AWS.DynamoDB.DocumentClient({ service: new AWS.DynamoDB( { apiVersion: “2012-08-10”, region: “us-east-1” }), convertEmptyValues: true }); dynamo.query({ TableName: “Jobs”, KeyConditionExpression: ‘sstatus = :st’, ExpressionAttributeValues:
Continue readingCondition parameter type does not match schema type
Issue I have a table in dynamoDB called ‘Contributors’. I have a primary composite key where the hash key is ‘UserId’ and the sort key is ‘NoteId’. I want to query for all the items belonging to a particular hashkey.
Continue readingIs there a less verbose way to write DynamoDB update params?
Issue I am new to Dynamo and I created a simple todo API with Serverless Framework and TypeScript To update an Item I have to do this huge params const const params = { TableName: process.env.DYNAMO_TABLE_TODO, Key: { id: event.pathParameters.id,
Continue readingUnknownEndpoint: Inaccessible host: `localhost'. When trying to connect to localhost with express and dynamodb local
Issue I am using docker compose to create two containers one for dynamodb local and one for nodejs express app. docker-compose.dev.yml version: ‘3’ services: dynamodb-local: command: "-jar DynamoDBLocal.jar -sharedDb -optimizeDbBeforeStartup -dbPath ./data" image: "amazon/dynamodb-local:latest" container_name: dynamodb-local ports: – "8000:8000" volumes:
Continue readingUnknownEndpoint: Inaccessible host: `localhost'. When trying to connect to localhost with express and dynamodb local
Issue I am using docker compose to create two containers one for dynamodb local and one for nodejs express app. docker-compose.dev.yml version: ‘3’ services: dynamodb-local: command: "-jar DynamoDBLocal.jar -sharedDb -optimizeDbBeforeStartup -dbPath ./data" image: "amazon/dynamodb-local:latest" container_name: dynamodb-local ports: – "8000:8000" volumes:
Continue readingProperty 'ExclusiveStartKey' does not exist on type '{ TableName: any; }'
Issue I am trying to scan a DynamoDB table which may be more than 1 MB, so I’m using ExclusiveStartKey. I’ve been going through all the examples in How to fetch/scan all items from `AWS dynamodb` using node.js but I’m
Continue readingConfigure DynamoDB stream trigger with insert only
Issue I currently have an AWS DynamoDB stream triggers a Lambda function. The Lambda function is triggered by both insert and update events in the DynamoDB. Is there a way to change the configuration so that the Lambda function would
Continue readingDynamo db pagination
Issue I want to use pagination in dynamodb using aws-sdk DocumentClient() I am using node.js. What I want to do is get first 10 items and then return these value to the user. After that user makes a new request
Continue readingDynamoDB remove Map from List where property equals value
Issue How can I remove a map inside of a list in dynamo using a property value? This is the dynamo record structure { "authorizedUsers": [ { "name": "Bob", "phoneNumber": "822-222-2221" }, { "name": "Joe", "phoneNumber": "111-111-2221" } ], "PK":
Continue readingdynamodb query with GSI and filter expression on non partition key and sort key columns in nodejs
Issue I have a GSI on my table and am using that GSI for quering results. Am using a Filter Expression as well const active_cases = await storesMonthlyAudit(); console.info("actives cases : ", active_cases) async function storesMonthlyAudit() { const params =
Continue readinghow to do the update when my key is called key
Issue I have a problem with an update in dynamoDB , when performing the update in dyanamo it tells me that I cannot use the key keyword "message": "Value provided in ExpressionAttributeNames unused in expressions: keys: {#keyid}", "code": "ValidationException", "time":
Continue readingDynamoDB begins with not returning expected results
Issue I’m using NodeJS and DynamoDB. I’m never used DynamoDB before, and primary a C# developer (where this would simply just be a .Where(x => x…) call, not sure why Amazon made it any more complicated then that). I’m trying
Continue readingDynamoDB begins with not returning expected results
Issue I’m using NodeJS and DynamoDB. I’m never used DynamoDB before, and primary a C# developer (where this would simply just be a .Where(x => x…) call, not sure why Amazon made it any more complicated then that). I’m trying
Continue readingDynamoDB begins with not returning expected results
Issue I’m using NodeJS and DynamoDB. I’m never used DynamoDB before, and primary a C# developer (where this would simply just be a .Where(x => x…) call, not sure why Amazon made it any more complicated then that). I’m trying
Continue readingDynamodb get items based on time and likes
Issue Currently, I am making a 9gag.com replica, where users can see posts having more than 20 votes from the last 2 months, how can I achieve this efficiently? Here is my current design for post table userID | createTime
Continue readingDynamodb get items based on time and likes
Issue Currently, I am making a 9gag.com replica, where users can see posts having more than 20 votes from the last 2 months, how can I achieve this efficiently? Here is my current design for post table userID | createTime
Continue readingDynamoDB atomic counter that rolls over
Issue I would like to have an atomic counter that resets back to 1 when it hits a threshold for a location (key). I can increment without issues, but would like it to be atomic on the roll over if
Continue readingHow can I map a DynamoDB AttributeMap type to an interface?
Issue Say I have a typescript interface: interface IPerson { id: string, name: string } And I run a table scan on a persons table in dynamo, what I want to be able to do is this: const client =
Continue readingcreate or update dynamodb
Issue Currently, I’m checking if the item exists with a query and then I’m using put or updateItem, I want to change it and make a single call to DDB. I want to make a query that will update or
Continue readingDynamo db query using contains operator
Issue My table items are of the form of function addDoc(movie,cb){ var params = { TableName: “Movies”, Item: { “year”: movie.year, “title”: movie.title, “info”: movie.info, “genres” : movie.info.genres || [] } }; docClient.put(params, function(err, data) { bar.tick(1) i++; cb(err); });
Continue readingPut items in DynamoDB without knowing the attributes
Issue This feels like a really stupid question, but my lack of JS knowledge combined with lack of AWS knowledge has me in a tight spot! I’m just trying to get to grips with a basic AWS stack i.e. Lambda/Dynamo/API
Continue readingAWS @aws-sdk/lib-dynamodb 'Cannot read property '0' of undefined'
Issue I try to leverage @aws-sdk/lib-dynamodb for simplifying data retrieval from AWS DynamoDB. # aws.js const {DynamoDBClient,ScanCommand} = require(‘@aws-sdk/client-dynamodb’); const { DynamoDBDocumentClient } = require(‘@aws-sdk/lib-dynamodb’); const { fromIni } = require(‘@aws-sdk/credential-provider-ini’); const client = new DynamoDBClient({ credentials: fromIni({ profile: process.env.AWS_PROFILE
Continue readingHow to fetch/scan all items from `AWS dynamodb` using node.js
Issue How to fetch/scan all items from AWS dynamodb using node.js. I am posting my code here. var docClient = new aws.DynamoDB.DocumentClient(); var params = { TableName:”users”, KeyConditionExpression:”user_status=:status”, ExpressionAttributeValues: { “:status”: “Y” } }; var queryExecute = function(callback) { docClient.query(params,function(err,result)
Continue readingWhat does a "errorType": "string" mean in AWS Lambda?
Issue I am currently trying to test out a lambda function using the cognito-sync-trigger blueprint. I have added my own function code with no errors however when I test it I get Execution result: failed This is the results from
Continue reading