-
Notifications
You must be signed in to change notification settings - Fork 8
/
serverless.yml
48 lines (42 loc) · 923 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
41
42
43
44
45
46
47
48
service: sls-lambda-opa
provider:
name: aws
runtime: go1.x
stage: dev
region: ap-southeast-2
package:
exclude:
- ./**
include:
- ./bin/**
functions:
opacheck:
handler: bin/opacheck
events:
- http:
path: opacheck
method: get
gold:
handler: bin/gold
events:
- http:
path: gold
method: get
authorizer:
type: request
name: opacheck
#arn: ${env:SLS_AUTHORIZER_ARN}
resultTtlInSeconds: 0
identitySource: method.request.header.Authorization
silver:
handler: bin/silver
events:
- http:
path: silver
method: get
authorizer:
type: request
name: opacheck
#arn: ${env:SLS_AUTHORIZER_ARN}
resultTtlInSeconds: 0
identitySource: method.request.header.Authorization