I am not sure if you have resolved this but what you may facing is DynamoDB read consistency issue, I had the similar issue.
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadConsistency.html