File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ This works with any base images except AWS managed base images. To use AWS manag
46
46
AWS Lambda Adapter also works with AWS managed Lambda runtimes. You need to do three things:
47
47
48
48
1 . attach Lambda Adapter layer to your function.
49
- 1 . x86_64: ` arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerX86:2 `
50
- 2 . arm64: ` arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerArm64:2 `
49
+ 1 . x86_64: ` arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerX86:1 `
50
+ 2 . arm64: ` arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerArm64:1 `
51
51
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
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ This example shows how to use Lambda Adapter to run an express.js application on
7
7
We add Lambda Adapter layer to the function and configure wrapper script.
8
8
9
9
1 . attach Lambda Adapter layer to your function. This layer containers Lambda Adapter binary and a wrapper script.
10
- 1 . x86_64: ` arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerX86:2 `
11
- 2 . arm64: ` arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerArm64:2 `
10
+ 1 . x86_64: ` arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerX86:1 `
11
+ 2 . arm64: ` arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerArm64:1 `
12
12
2 . configure Lambda environment variable ` AWS_LAMBDA_EXEC_WRAPPER ` to ` /opt/bootstrap ` . This is a wrapper script included in the layer.
13
13
3 . set function handler to a startup command: ` run.sh ` . The wrapper script will execute this command to boot up your application.
14
14
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Resources:
25
25
AWS_LAMBDA_EXEC_WRAPPER : /opt/bootstrap
26
26
RUST_LOG : info
27
27
Layers :
28
- - !Sub arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerX86:2
28
+ - !Sub arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerX86:1
29
29
Events :
30
30
RootPath :
31
31
Type : Api
You can’t perform that action at this time.
0 commit comments