creates an aws upload function