-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
82 lines (77 loc) · 1.86 KB
/
serverless.yml
File metadata and controls
82 lines (77 loc) · 1.86 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
service: ${env:ALIS_APP_ID}
provider:
name: aws
region: ${env:AWS_DEFAULT_REGION}
runtime: python3.7
stage: oauth2
endpointType: regional
memorySize: 256
environment:
AUTHLETE_API_KEY: ${ssm:${env:ALIS_APP_ID}ssmAuthleteApiKey}
AUTHLETE_API_SECRET: ${ssm:${env:ALIS_APP_ID}ssmAuthleteApiSecret}
COGNITO_USER_POOL_ID: ${ssm:${env:ALIS_APP_ID}ssmCognitoUserPoolId}
iamRoleStatements:
- Effect: "Allow"
Action:
- "cognito-idp:AdminGetUser"
Resource:
- "arn:aws:cognito-idp:${self:provider.region}:*:userpool/${ssm:${env:ALIS_APP_ID}ssmCognitoUserPoolId}"
package:
exclude:
- '**'
- '!lambdas/**'
- '!lib/**'
functions:
authorization:
handler: lambdas/http/authorization.handler
events:
- http:
path: /authorization
method: post
cors: true
discovery:
handler: lambdas/http/well_known/openid_configuration.handler
events:
- http:
path: /.well-known/openid-configuration
method: get
cors: true
introspection:
handler: lambdas/http/introspection.handler
events:
- http:
path: /introspection
method: post
jwks:
handler: lambdas/http/jwks.handler
events:
- http:
path: /jwks
method: get
cors: true
userinfo:
handler: lambdas/http/userinfo.handler
events:
- http:
path: /userinfo
method: get
cors: true
token:
handler: lambdas/http/token.handler
events:
- http:
path: /token
method: post
cors: true
custom:
pythonRequirements:
dockerizePip: false
pythonBin: ${self:provider.runtime}
fileName: requirements-prod.txt
prune:
automatic: true
number: 3
plugins:
- serverless-python-requirements
- serverless-prune-plugin
- alis-packaging