Skip to content

Commit

Permalink
Add SAM deploy template for shared layer
Browse files Browse the repository at this point in the history
  • Loading branch information
mbklein committed Oct 19, 2022
1 parent 1efafe8 commit 093139c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.aws-sam/
.idea/
coverage
node_modules/
dist/
*.iml
.DS_Store
samconfig.toml
24 changes: 24 additions & 0 deletions template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Resources:
SharedLayer:
Type: AWS::Serverless::LayerVersion
Properties:
LayerName: libvips-sharp-jp2
ContentUri: dist/sharp-lambda-layer.zip
CompatibleArchitectures:
- x86_64
CompatibleRuntimes:
- nodejs14.x
- nodejs16.x
- nodejs18.x
LicenseInfo: Apache-2.0
LayerPermission:
Type: AWS::Lambda::LayerVersionPermission
Properties:
Action: lambda:GetLayerVersion
LayerVersionArn: !Ref SharedLayer
Principal: "*"
Outputs:
LayerArn:
Value: !Ref SharedLayer

0 comments on commit 093139c

Please sign in to comment.