Building on this answer: Complete scan of dynamoDb with boto3
What I would like to achieve is to also get the historical changes on each item. For example if item 1 has had three changes over time:
{
"item" : 1
"x" : "abc"
"time" : 1
}
{
"item" : 1
"x" : "efg"
"time" : 2
}
{
"item" : 1
"x" : "hij"
"time" : 3
}
The scan will only give me the latest one, i.e.
{
"item" : 1
"x" : "hij"
"time" : 3
}
Is there a way to get the previous two changes as well?