import time def lambda_handler(event, context): # Your migration code goes here # The record is passed in as the event. Change the data/structure as needed # return the modified event try: # Example convert clf time to unix time updated_date = str(time.mktime(time.strptime(event["timestamp"]["S"], "%d/%b/%Y:%H:%M:%S %z"))) event["timestamp"] = {"N": updated_date} return event except ValueError as e: print('ValueError:', e) return