-
Notifications
You must be signed in to change notification settings - Fork 1
/
serverless.yml
37 lines (35 loc) · 859 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
provider:
name: aws
runtime: nodejs6.10
memorySize: 128
iamRoleStatements:
- Effect: 'Allow'
Action:
- 'lambda:InvokeFunction'
Resource: "*"
service: s3-signature
functions:
sign:
handler: handler.sign
warmup: true
events:
- http:
path: /
method: post
cors:
origin: ${file(./config.yml):AccessControlAllowOrigin}
headers:
- Content-Type
- Origin
- X-Amz-ACL
- X-Amz-Date
- Authorization
- X-Requested-With
- Cache-Control
- X-Api-Key
- X-Amz-Security-Token
allowCredentials: true
environment:
AccessControlAllowOrigin: ${file(./config.yml):AccessControlAllowOrigin}
plugins:
- serverless-plugin-warmup