-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathserverless.yml
More file actions
54 lines (46 loc) · 1001 Bytes
/
serverless.yml
File metadata and controls
54 lines (46 loc) · 1001 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
service: serephem-image-processor
plugins:
- serverless-ephemeral
package:
exclude:
- package.json
- package-lock.json
- README.md
- node_modules/**
- .ephemeral/**
- docker/**
custom:
ephemeral:
libraries:
- packager:
compose: docker/docker-compose.yml
service: imgprocessor
output: /tmp/libs/image-processor.zip
directory: image-processor
provider:
name: aws
runtime: python2.7
stage: dev
region: us-east-1
iamRoleStatements:
- Effect: "Allow"
Action:
- logs:CreateLogGroup
- logs:CreateLogStream
- logs:PutLogEvents
- s3:GetObject
- s3:GetObjectAcl
- s3:PutObject
- s3:PutObjectAcl
Resource: "*"
functions:
processor:
handler: images.process
events:
- s3:
bucket: srphm-image-processor
event: s3:ObjectCreated:*
rules:
- prefix: original/
test:
handler: images.test