0

I created 5,000 recipients in a list. These emails were success+{uniqueInt}@simulator.amazonses.com and bounce+{uniqueInt}@simulator.amazonses.com.

For some unknown reason, only 4,135 emails were added. I found this using:

aws dynamodb scan --table-name XXX-sentEmails --select "COUNT"

I found no exceptions in the logs:

aws logs filter-log-events
        --log-group-name /aws/lambda/XX-createRecipient
        --filter-pattern Exception
        --output text

Any ideas what could happens? Can DynamoDB reject records silently?

alexandresaiz
  • 2,678
  • 7
  • 29
  • 40
Gabriel Robert
  • 3,012
  • 2
  • 18
  • 36
  • Do you have any duplicate hash key data in the data set? DynamoDB API (put Item) updates the item if it finds the hash key. – notionquest Nov 15 '17 at 16:28

1 Answers1

1

It could be because either you had duplicated emails or you run out of write capacity in DynamoDB. If you're using the createRecipient endpoint, then you're saving items one by one, which leads to a waste of DynamoDB resources. Try to import in bulk instead

davids
  • 6,259
  • 3
  • 29
  • 50