reading the entire file into buffer causes out of memory issues. Pass
a file stream to aws api instead.