File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ This example shows how to use Lambda Web Adapter's SnapStart hooks to drain and
77We add the Lambda Web Adapter layer to the function and configure the wrapper script.
88
991 . attach Lambda Adapter layer to your function. This layer contains the Lambda Adapter binary and a wrapper script.
10- 1 . x86_64: ` arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerX86:28 `
11- 2 . arm64: ` arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerArm64:28 `
10+ 1 . x86_64: ` arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerX86:30 `
11+ 2 . arm64: ` arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerArm64:30 `
12122 . configure Lambda environment variable ` AWS_LAMBDA_EXEC_WRAPPER ` to ` /opt/bootstrap ` . This is a wrapper script included in the layer.
13133 . set function handler to a startup command: ` run.sh ` . The wrapper script will execute this command to boot up your application.
1414
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ Resources:
2626 AWS_LWA_SNAPSTART_BEFORE_CHECKPOINT_PATH : /snapstart/before
2727 AWS_LWA_SNAPSTART_AFTER_RESTORE_PATH : /snapstart/after
2828 Layers :
29- - !Sub arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerX86:28
29+ - !Sub arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerX86:30
3030 Events :
3131 ApiEvent :
3232 Type : HttpApi
Original file line number Diff line number Diff line change @@ -4,12 +4,6 @@ This example shows how to use the Lambda Web Adapter's SnapStart hooks to drain
44re-establish a connection pool around the snapshot/restore boundary, packaged as a
55** container image** (OCI) rather than a zip.
66
7- > ** Availability:** Lambda SnapStart for container images (OCI) is expected to launch
8- > in early July. Until it is available in your account/Region, deploying this example
9- > with ` SnapStart: ApplyOn: PublishedVersions ` on an ` Image ` package type will be
10- > rejected. The application itself runs unchanged with or without SnapStart — the
11- > hooks are simply not invoked when SnapStart is off.
12-
137For the zip-packaged equivalent, see
148[ fastapi-snapstart-zip] ( ../fastapi-snapstart-zip ) .
159
You can’t perform that action at this time.
0 commit comments