In AWS Dynamo DB we would like to automatically generate a unique id for our primary key when we call our update/put spotid function:
dynamodb.put_item(
TableName = tablesinfo, Item = {
'spot_id':{'N' : spot_id},
'latitude':{'N' : lat},
'longitude':{'N' : lon},
'description':{'S' : descrip}
}
Note code is in Python but since we plan on using AWS Lambda for this we can also use Java or Node.JS, However we would prefer if DynamoDB could handle this function.