Reputation: 321
AWS DynamoDB Triggers enable us to capture all changes in our DynamoDB table. Lambda assigns each Lambda function to a shard of DynamoDB Streams.
I want to retrieve a shard ID in Lambda function to keep consistency in some data processing tasks, but I can't find the way to get it. Does any one manage to do it?
Upvotes: 3
Views: 894
Reputation: 5205
AWS Lambda abstracts the details of shard processing and serialization away from you. The only way to process a stream and be aware of the shard ID at the same time is to consume the stream yourself using the KCL and the DynamoDB Streams adapter.
Upvotes: 2