title: DynamoDB Max ID
body: <p>I'm new to DynamoDB and I'm looking for a way to insert a record with a guaranteed unique primary key. Unless there's an identity seed I'll need to know that in order to insert a new record. I have a table with an int as primary key (perhaps I should have used a GUID). The only suggestion I have seen is to use the item_count() method, but this is flawed in many ways, not least because the documentation states that it updates approx every 6 hours. What's the best practice here? I can't believe the guys at DynamoDB have neglected to allow us to give us a decent method for doing this essential task?</p>