Using Node.js ES modules and top-level await in AWS Lambda | Amazon Web Services

Lambda functions now support ES modules in Node.js 14.x runtimes. ES modules support await at the top-level of function code. Using top-level await maximizes the effectiveness of provisioned concurrency and can reduce the latency experienced by end users during cold starts.