Get the latest tech news

AWS Lambda Web Adapter


Run web applications on AWS Lambda. Contribute to awslabs/aws-lambda-web-adapter development by creating an account on GitHub.

Environment VariableDescriptionDefaultAWS_LWA_PORT / PORT*traffic port"8080"AWS_LWA_READINESS_CHECK_PORT / READINESS_CHECK_PORT*readiness check port, default to the traffic portPORTAWS_LWA_READINESS_CHECK_PATH / READINESS_CHECK_PATH*readiness check path"/"AWS_LWA_READINESS_CHECK_PROTOCOL / READINESS_CHECK_PROTOCOL*readiness check protocol: "http" or "tcp", default is "http""http"AWS_LWA_READINESS_CHECK_MIN_UNHEALTHY_STATUSThe minimum HTTP status code that is considered unhealthy"500"AWS_LWA_ASYNC_INIT / ASYNC_INIT*enable asynchronous initialization for long initialization functions"false"AWS_LWA_REMOVE_BASE_PATH / REMOVE_BASE_PATH*the base path to be removed from request pathNoneAWS_LWA_ENABLE_COMPRESSIONenable gzip compression for response body"false"AWS_LWA_INVOKE_MODELambda function invoke mode: "buffered" or "response_stream", default is "buffered""buffered"AWS_LWA_PASS_THROUGH_PATHthe path for receiving event payloads that are passed through from non-http triggers"/events" Note: We use "AWS_LWA_" prefix to namespacing all environment variables used by Lambda Web Adapter. Inside Lambda execution environment, the web application runs as a non-root user, and not allowed to listen on ports lower than 1024. The Lambda Web Adapter also supports all non-HTTP event triggers, such as SQS, SNS, S3, DynamoDB, Kinesis, Kafka, EventBridge, and Bedrock Agents.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Lambda Web Adapter

Lambda Web Adapter