AWS Event ExamplesEC2On this pageEC2cautionThis page is a work in progress. If you want to help us to make this page better, please consider contributing on GitHub.AWS DocumentationUsing AWS Lambda with Amazon EC2Exampleimport middy from '@middy/core'export const handler = middy() .handler((event, context, {signal}) => { // ... })