Write to S3 bucket using Async/Await in AWS Lambda
问题 I have been using the code below (which I have now added await to) to send files to S3. It has worked fine with my lambda code but as I move to transfer larger files like MP4 I feel I need async/await. How can I fully convert this to async/await? exports.handler = async (event, context, callback) => { ... // Copy data to a variable to enable write to S3 Bucket var result = response.audioContent; console.log('Result contents ', result); // Set S3 bucket details and put MP3 file into S3 bucket