I would like to point that despite the AWS Lambda Limits of Payload data being 6MB, in practice your file may be encoded into Base64 which would mean that your limit becomes 4.5MB because the Base64 encoding results in 33% size increase.