- 新しい順
- 投票が多い順
- コメントが多い順
I see it's possible to disable/ enable the dynamo stream, and although you'll receive a new arn after a stream is disabled/ enabled I can't find anything in documentation if behind the scenes you're connecting to the original stream log or not?
No, when you disable/enable a stream it changes ARN and is completely separate to the old stream.
If I configure my lambda trigger to listen to the stream will all the events from the copy start processing?
It depends how you "copy" the data. If your "copy" means restore the table from backup, then no the events will not be in the stream. If your "copy" is done by you calling PutItem
or BatchWriteItems
to insert data, then yes it will enter the stream.
If I dont have the stream enabled while Im copying data to the table will the stream log be empty when I enable?
Yes
Another option Im looking into is lambda event source mapping, specifically the starting position. I might be able to use the 'latest' flag.
LATEST
will start reading from the the point of when you enable the trigger on the ESM. So if your copy puts events on the stream and you later create an ESM with iterator position as LATEST
your Lambda will disregard all the data from the copy.
関連するコンテンツ
- AWS公式更新しました 2年前
- AWS公式更新しました 1年前
What kind of disaster scenario are you mitigating against? Are your efforts here really necessary?