You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pre-compiled Lambda Web Adapter binaries are provided in ECR public repo: [public.ecr.aws/awsguru/aws-lambda-adapter](https://gallery.ecr.aws/awsguru/aws-lambda-adapter).
@@ -29,8 +29,8 @@ Below is a Dockerfile for [an example nodejs application](examples/expressjs).
29
29
30
30
```dockerfile
31
31
FROM public.ecr.aws/docker/library/node:16.13.2-stretch-slim
2. configure Lambda environment variable `AWS_LAMBDA_EXEC_WRAPPER` to `/opt/bootstrap`.
52
52
3. set function handler to your web application start up script. e.g. `run.sh`.
53
53
54
54
For details, please check out [the example nodejs application](examples/expressjs-zip).
55
55
56
+
### Readiness Check
57
+
58
+
When a new Lambda Execution Environment starts up, Lambda Web Adapter will boot up as a Lambda Extension, followed by the web application.
59
+
60
+
Lambda Web Adapter will send HTTP GET requests to the web application at `http://127.0.0.1:{READINESS_CHECK_PORT}{READINESS_CHECK_PATH}`.
61
+
62
+
Lambda Web Adapter will retry this request every 10 milliseconds until the web application returns a successful response (http status code 2xx) or the function times out.
63
+
64
+
After passing readiness check, Lambda Web Adapter will start Lambda Runtime and forward the invokes to the web application.
56
65
57
66
### Configurations
58
67
59
68
The readiness check port/path and traffic port can be configured using environment variables. These environment variables can be defined either within docker file or as Lambda function configuration.
0 commit comments