aws-samples / serverless-snippets

Snippets of code used for Serverless Development. Code examples hosted on serverlessland.com/snippets
https://serverlessland.com/snippets
MIT No Attribution
140 stars 93 forks source link

Update example.js #208

Closed AWStimrtrev closed 2 months ago

AWStimrtrev commented 2 months ago

Change handler definition to use ES module format

Description of changes: Current node.js example code for the S3 trigger tutorial uses an ES module style import statement, but declares the handler in common JS format. Changed the handler definition to use ES module format.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.