-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathserverless.yml
More file actions
65 lines (59 loc) · 1.56 KB
/
serverless.yml
File metadata and controls
65 lines (59 loc) · 1.56 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
service: serverless-loopback4-express
frameWorkVersion: ">=1.72.0 <2.0.0"
plugins:
- serverless-offline
provider:
name: aws
runtime: nodejs12.x
stage: ${opt:stage, self:custom.defaultStage}
region: us-east-1
logs:
restApi: true
custom:
serverless-offline:
httpPort: 5000
defaultStage: dev
package:
exclude:
- .vscode/**
- data/**
- dist/__tests__/**
- src/**
- tsconfig.tsbuildinfo
functions:
loopback:
handler: dist/lambda-wrapper.handler
name: '${self:provider.stage}-loopback4-express'
description: Sample loopback4 (via express) running in AWS lambda
memorySize: 512
timeout: 60
events:
- http: ANY /
- http: ANY {proxy+}
resources:
# The "Outputs" that your AWS CloudFormation Stack should produce. This allows references between services.
Outputs:
LoopbackPostman:
Description: The baseUrl value to configure for your Postman collection
Value:
'Fn::Join':
- ''
- - 'https://'
- Ref: 'ApiGatewayRestApi'
- '.execute-api.'
- Ref: 'AWS::Region'
- '.'
- Ref: 'AWS::URLSuffix'
- '/${self:provider.stage}/api'
LoopbackApiExplorer:
Description: The URL to directly access the loopback API explorer
Value:
'Fn::Join':
- ''
- - 'https://'
- Ref: 'ApiGatewayRestApi'
- '.execute-api.'
- Ref: 'AWS::Region'
- '.'
- Ref: 'AWS::URLSuffix'
- '/${self:provider.stage}/api/explorer/'