-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
43 lines (37 loc) · 767 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
service: amigosdobrazil-api
custom:
serverless-offline:
port: 3333
webpack:
webpackConfig: ./webpack.config.js
includeModules:
forceInclude:
- pg
- pg-hstore
plugins:
- serverless-dotenv-plugin
- serverless-webpack
- serverless-pseudo-parameters
- serverless-offline
provider:
name: aws
runtime: nodejs12.x
region: us-east-1
stage: staging
apiGateway:
binaryMediaTypes:
- '*/*'
iamRoleStatements:
- Effect: 'Allow'
Action:
- 's3:PutObject'
- 's3:GetObject'
- 's3:DeleteObject'
Resource: 'arn:aws:s3:::${env:S3_BUCKET}/*'
functions:
app:
handler: src/handler.application
timeout: 10
events:
- http: ANY /
- http: 'ANY {proxy+}'