-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
27 lines (25 loc) · 783 Bytes
/
Copy pathserverless.yml
File metadata and controls
27 lines (25 loc) · 783 Bytes
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
service: sls-auth-sample # NOTE: update this with your service name
provider:
name: aws
runtime: python3.7
profile: ${file(./env/dev.yml):AWS_PROFILE}
region: ${file(./env/dev.yml):AWS_REGION}
environment:
COGNITO_IDENTITY_POOL_ID: ${file(./env/dev.yml):COGNITO_IDENTITY_POOL_ID}
COGNITO_USER_POOL_ARN: ${file(./env/dev.yml):COGNITO_USER_POOL_ARN}
functions:
hello:
handler: handler.hello
events:
- http:
path: hello
method: get
#integration: lambda-proxy (default)
cors:
origin: '*'
headers:
- Authorization
## cognito userpoll authorizer
authorizer:
name: authorizer
arn: ${self:provider.environment.COGNITO_USER_POOL_ARN}