Using the below code in a Lambda function to retrieve a .csv email attachment from an email that is sent to an S3 bucket on arrival.
Lambda function as follows: