-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
54 lines (50 loc) · 1.07 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
service: urban-growth
provider:
name: aws
region: us-west-2
runtime: python3.6
stage: test
iamRoleStatements:
- Effect: "Allow"
Action:
- s3:GetObject
Resource:
- "arn:aws:s3:::landsat-pds/*"
- Effect: "Allow"
Action:
- s3:*
Resource:
- "arn:aws:s3:::urban-growth/*"
- Effect: "Allow"
Action:
- sqs:ReceiveMessage
- sqs:SendMessage
- sqs:SendMessageBatch
- sqs:DeleteMessage
- sqs:GetQueueAttributes
- logs:CreateLogGroup
- logs:CreateLogStream
- logs:PutLogEvents
Resource:
- "arn:aws:sqs:::"
- "arn:aws:logs:::"
- Effect: "Allow"
Action:
- dynamodb:*
Resource:
- "arn:aws:dynamodb:::table/*"
package:
artifact: package.zip
functions:
get-scenes:
handler: handler.get_scenes
memorySize: 128
timeout: 30
calc-urban-score:
handler: handler.calc_urban_score
memorySize: 512
timeout: 60
get-scenes-send-queues:
handler: handler.get_scenes_send_queues
memorySize: 192
timeout: 30