-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
45 lines (40 loc) · 995 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
38
39
40
41
42
43
44
45
service:
name: aws-apache-to-json
plugins:
- serverless-offline
- serverless-webpack
provider:
name: aws
memorySize: 128
region: us-east-1
runtime: nodejs8.11
timeout: 120
iamRoleStatements:
- Effect: "Allow"
Action:
- "s3:AbortMultipartUpload"
- "s3:GetBucketLocation"
- "s3:GetObject"
- "s3:ListBucket"
- "s3:ListBucketMultipartUploads"
- "s3:PutObject"
Resource: ${file(./resources.yml):s3Buckets}
- Effect: "Allow"
Action:
- "logs:CreateLogGroup"
- "logs:Get*"
- "logs:PutLogEvents"
Resource: ${file(./resources.yml):logGroups}
- Effect: "Allow"
Action:
- "logs:CreateLogStream"
Resource: ${file(./resources.yml):logStreams}
functions:
processor:
handler: src/main/node/handler.processor
package:
exclude:
- node_modules/aws-sdk/**
- node_modules/aws-sdk-mock/**
- node_modules/serverless/**
- src/main/resources/**