nestrs-lambda takes the router from NestApplication::into_router and serves it with lambda_http (API Gateway HTTP API, REST API, ALB, Function URL).
Install
lambda_http features apigw_http and apigw_rest.
Listen on Lambda
Do not calllisten / listen_graceful. Those bind a TCP socket. On Lambda, hand the router to listen_lambda:
Local vs Lambda
Share the same
AppModule. Swap only main.