-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.yaml
More file actions
50 lines (49 loc) · 1.7 KB
/
template.yaml
File metadata and controls
50 lines (49 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# sam package --template-file template.yaml --output-template-file packaged.yaml --s3-bucket thinkport-layers-test --profile thinkport
# sam deploy --region eu-central-1 --template-file packaged.yaml --stack-name serverless-layers --profile thinkport
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Metadata:
AWS::ServerlessRepo::Application:
Name: microservices-with-layers
Description: Microservices with layers
Author: Roman Krivtsov
SpdxLicenseId: Apache-2.0
LicenseUrl: LICENSE.txt
ReadmeUrl: README.md
HomePageUrl: https://github.com/ThinkportRepo/microservices-with-aws-lambda-layers.git
SemanticVersion: 0.0.1
SourceCodeUrl: https://github.com/ThinkportRepo/microservices-with-aws-lambda-layers.git
Resources:
SharedLayer:
Type: "AWS::Serverless::LayerVersion"
Properties:
CompatibleRuntimes:
- nodejs8.10
ContentUri: ./layer/http-lambda-response-shared-library
Description: Shared internal library
LayerName: http-lambda-response-shared-library
LicenseInfo: Apache-2.0
UsersFunction:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs8.10
CodeUri: "./lambdas/users"
Layers:
- !Ref SharedLayer
PostsFunction:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs8.10
CodeUri: "./lambdas/posts"
Layers:
- !Ref SharedLayer
BrainFuckFunction:
Type: AWS::Serverless::Function
Properties:
Handler: file.bf
Runtime: provided
CodeUri: "./lambdas/bf"
Layers:
- arn:aws:lambda:eu-central-1:444134189787:layer:brainfuck:1