Skip to content

Commit

Permalink
add LayerVersion resource
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcasalboni committed Sep 15, 2021
1 parent ae54cc8 commit ff0df5c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -16,3 +16,5 @@ serverless.yml

.idea/
.vscode/

layer-sdk/src
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions template.yml
Expand Up @@ -59,11 +59,24 @@ Globals:

Resources:

SDKlayer:
Type: AWS::Serverless::LayerVersion
Properties:
LayerName: AWS-SDK-v2_989_0
Description: AWS SDK 2.989.0
ContentUri: ./layer-sdk/src
CompatibleRuntimes:
- nodejs14.x
LicenseInfo: 'Available under the MIT-0 license.'
RetentionPolicy: Retain

initializer:
Type: AWS::Serverless::Function
Properties:
CodeUri: lambda
Handler: initializer.handler
Layers:
- !Ref SDKlayer
Policies:
- AWSLambdaExecute # Managed Policy
- Version: '2012-10-17' # Policy Document
Expand All @@ -83,6 +96,8 @@ Resources:
Properties:
CodeUri: lambda
Handler: executor.handler
Layers:
- !Ref SDKlayer
Policies:
- AWSLambdaExecute # Managed Policy
- Version: '2012-10-17' # Policy Document
Expand All @@ -97,6 +112,8 @@ Resources:
Properties:
CodeUri: lambda
Handler: cleaner.handler
Layers:
- !Ref SDKlayer
Policies:
- AWSLambdaExecute # Managed Policy
- Version: '2012-10-17' # Policy Document
Expand All @@ -122,6 +139,8 @@ Resources:
Properties:
CodeUri: lambda
Handler: optimizer.handler
Layers:
- !Ref SDKlayer
Policies:
- AWSLambdaExecute # Managed Policy
- Version: '2012-10-17' # Policy Document
Expand Down

0 comments on commit ff0df5c

Please sign in to comment.