Skip to content

Commit

Permalink
See if a layer works, second try
Browse files Browse the repository at this point in the history
  • Loading branch information
coverbeck committed Aug 15, 2023
1 parent cbe1f9b commit ec7362b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Binary file added checkUrlExists/lib/libstdc++.so.6
Binary file not shown.
10 changes: 9 additions & 1 deletion checkUrlExists/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,21 @@ Globals:
Timeout: 3

Resources:
LayerVersion:
Type: AWS::Serverless::LayerVersion
Properties:
CompatibleRuntimes:
- nodejs18.x
CompatibleArchitectures:
- x86_64
ContentUri: lib/libstdc++.so.6
LambdaFunction:
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
CodeUri: lambda/
Handler: index.lambdaHandler
Runtime: nodejs18.x
Layers: "arn:aws:lambda:us-east-2:312767926603:layer:libstdc:1"
Layers: !Ref LayerVersion
Events:
Lambda:
Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api
Expand Down

0 comments on commit ec7362b

Please sign in to comment.