-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
40 lines (36 loc) · 845 Bytes
/
serverless.yml
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
service: pact-mock
provider:
name: aws
versionFunctions: false
runtime: nodejs12.x
region: eu-west-2
stage: ${opt:stage, 'dev'}
plugins:
- serverless-webpack
- serverless-offline-pact
- 'serverless-offline'
custom:
webpack:
webpackConfig: webpack.config.js
includeModules:
forceExclude:
- aws-sdk
packager: "yarn"
serverless-offline:
location: .webpack/service
pact:
stub:
filePath: 'pact.json'
noStart: true
port: 9998
stages:
- local
functions:
pact_mock:
name: pact-mock-${self:provider.stage}
handler: src/functions/lambda.run
# Uncomment this on deploy, serverless-offline fails to start if it exists
# layers:
# - ${cf:pact-standalone-${self:provider.stage}.PactStandaloneLayerExport}
events:
- http: ANY /{path+}