We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9a32aa commit 2d3bc55Copy full SHA for 2d3bc55
serverless.yml
@@ -5,13 +5,25 @@ provider:
5
runtime: ruby2.7
6
region: ap-northeast-1
7
lambdaHashingVersion: 20201221
8
+ iamRoleStatements:
9
+ - Effect: "Allow"
10
+ Action:
11
+ - "s3:*"
12
+ Resource:
13
+ - "arn:aws:s3:::yuichi-kojima-test2/*"
14
functions:
15
image_resizer:
16
handler: handler.handler
17
+ layers:
18
+ - arn:aws:lambda:ap-northeast-1:046977594715:layer:sample-rubyvips8100-27:1
19
events:
- - httpApi:
- path: /hello
- method: get
20
+ - s3:
21
+ bucket: yuichi-kojima-test2
22
+ events:
23
+ - s3:ObjectCreated:*
24
+ rules:
25
+ - prefix: uploads
26
+ existing: true
27
package:
28
exclude:
29
- .git
0 commit comments