Lesson 51 of 56
TypescriptServerless Functions – AWS Lambda with TypeScript
25 minutes
Course progress91%
Set up a Lambda project
npm init -y
npm i -D typescript @types/aws-lambda @aws-sdk/client-s3
npm i aws-lambda
npx tsc --init
Handler example
import { APIGatewayProxyEvent, APIGatewayProxyResult } from 'aws-lambda';
export handler = (: ): <> => {
name = event.?. ?? ;
{
: ,
: { : },
: .({ : })
};
};