How can the Records from DynamoDB Table be reprocessed to DynamoDB stream ?

0

I want to re-process all the Records from DynamoDB Table to DynamoDB stream. Is there a way we can reprocess all the dynamoDB records to DynamoDB stream again without updating the records in dynamoDB

질문됨 6달 전303회 조회
1개 답변
0

You'll have to update the items to trigger the stream events again (and actually make a mutation to the items, as a write that doesn't change anything doesn't emit a stream event).

Depending on why you're asking for this, you might be better served to do a full export to S3 and have a copy of the data there. People often do this to bootstrap a downstream system, then use streams (or incremental exports) to keep it current.

AWS
답변함 6달 전
profile picture
전문가
검토됨 한 달 전
  • j@zhunter, thanks for your comment. This use case is because we had some records in DynamoDB & the DDB streams were enabled way after the Table was created and some data was already present in the Table. Now we have some past records in the dynamoDB Table that we want to process through the streams . This is one off manual effort . But we do not want to make any changes to the data to trigger the stream events for these old records but we do need them. Is there a way we can achieve this .

  • Nope, no way to ask the table to "restream" its contents. You could probably have some fun writing a Scan which would create its own event stream that would invoke your lambda fn. It's prob easier to have a different code path that can directly work against the full table data for bootstrapping.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠