How to solve race conditions among K8s pods
I think you shoukd re-think your table schema.
By having a table with id_2 as hash, no sort key and a global secondary index on id/created_data
Of couse this would only work if id_2 is unique in the table, not unique for each id