shevchenkos / DynamoDbBackUp

46 stars 23 forks source link

No records to process #42

Closed infigoKriti closed 6 years ago

infigoKriti commented 6 years ago

Invoking the lambda function after deploying it and deploying the event results in "no records to process" as response though there are objects in the dynamodb. However, using gulp incremental backup works fine.

shevchenkos commented 6 years ago

Hi, @infigoKriti. How do you invoke lambda function? Is it incremental backup? Because the sentence 'However, using gulp incremental backup works fine.' confused me.

infigoKriti commented 6 years ago

I tried to use the aws lambda for dynamoDB backup and push it into S3 bucket. So I deployed AWS Lambda, deployed AWS Lambda event and tried invoking the created lambda function from aws cli. The response I got is "no records to process" . Also, no backup was pushed into the S3 bucket.

infigoKriti commented 6 years ago

Hi, I am trying to create a lambda which backs up Dynamo DB and pushes it into a s3 bucket. So I deployed the lambda function using gulp , deployed AWS lambda event and tried to invoke lambda from AWS cli. However , no backup is found in my s3 bucket and the response I get is "no records to process".

Regards, Kriti Mantri

On 04-Oct-2017 1:05 pm, "Serhii" notifications@github.com wrote:

Hi, @infigoKriti https://github.com/infigokriti. How do you invoke lambda function? Is it incremental backup? Because the sentence 'However, using gulp incremental backup works fine.' confused me.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shevchenkos/DynamoDbBackUp/issues/42#issuecomment-334073391, or mute the thread https://github.com/notifications/unsubscribe-auth/AY_Sthcdzgi8CTPvCOyZTaxh8CZjZXHRks5sozVegaJpZM4PtIc9 .

shevchenkos commented 6 years ago

Ok, I got it. Please, try to add new record or modify existing one in DynamoDB Table. Also check that DynamoDB Stream is enabled.

Lambda function will be invoked automatically. You don't need to use aws cli.

infigoKriti commented 6 years ago

It works just fine now. Thanks. Is it possible to use the same Lambda for : 1)full backup 2)multiple tables?

shevchenkos commented 6 years ago

Nice questions.

  1. Definitely not. Full backup works through gulp task.
  2. Need to test this case.