-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserverless.yml
More file actions
34 lines (34 loc) · 763 Bytes
/
serverless.yml
File metadata and controls
34 lines (34 loc) · 763 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
28
29
30
31
32
33
34
service: resize-lambda-serverless
frameworkVersion: '2'
provider:
name: aws
runtime: ruby2.7
region: ap-northeast-1
lambdaHashingVersion: 20201221
iamRoleStatements:
- Effect: "Allow"
Action:
- "s3:*"
Resource:
- "arn:aws:s3:::yuichi-kojima-test2/*"
functions:
image_resizer:
handler: handler.handler
layers:
- arn:aws:lambda:ap-northeast-1:046977594715:layer:sample-rubyvips8100-27:1
events:
- s3:
bucket: yuichi-kojima-test2
events:
- s3:ObjectCreated:*
rules:
- prefix: uploads
existing: true
package:
exclude:
- .git
- .gitignore
- docker.env
- docker.env.sample
- docker-compose.yml
- Dockerfile.dev