-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
53 lines (47 loc) · 966 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
46
47
48
49
50
51
52
53
service: spark
package:
individually: true
provider:
name: aws
runtime: nodejs8.10
region: us-west-2
profile: cif
memorySize: 512
iamRoleStatements:
- Effect: Allow
Action:
- 's3:*'
Resource: '*'
environment:
WEBSITE_BUCKET: dev-spark.carryitforward.net
functions:
generateContent:
handler: src/handler.generateContent
events:
- http:
path: /gen/{name}
method: get
request:
parameters:
paths:
name: true
resources:
Resources:
WebsiteBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: ${self:provider.environment.WEBSITE_BUCKET}
custom:
webpack:
webpackConfig: ./webpack.config.js
includeModules: true
packager: 'yarn'
s3:
host: 0.0.0.0
port: 5353
directory: .s3
plugins:
- serverless-webpack
- serverless-s3-local
- serverless-dynamodb-local
- serverless-offline