How does Craft handle uploading assets to AWS?
They are uploaded to Craft first to a temporary file, then Assets uses the Asset Source to work out where to send them next - either the local file system or a remote one.

For handling large uploads in general you could look at this plugin: https://superbig.co/plugins/large-upload