Extract and save attachment from email (via SES) into AWS S3
You can download the attachment to /tmp directory in Lambda and then upload to S3.
The following code solved the issue.
open('/tmp/newFile.docx', 'wb').write(attachment.get_payload(decode=True)) s3r.meta.client.upload_file('/tmp/newFile.docx', outputBucket, attachment.get_filename())