-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserverless.yml
42 lines (38 loc) · 898 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
# NOTE: update this with your service name
service: excelUpload
# Create an optimized package for our functions
package:
individually: true
plugins:
- serverless-bundle # Package our functions with Webpack
- serverless-offline
- serverless-dotenv-plugin # Load .env as environment variables
provider:
name: aws
runtime: nodejs10.x
stage: dev
region: ap-northeast-2
iamRoleStatements:
- Effect: "Allow"
Resource: "*"
Action:
- "cloudwatch:*"
- "dynamodb:*"
- "events:*"
- "iam:ListAttachedRolePolicies"
- "iam:ListRolePolicies"
- "iam:ListRoles"
- "iam:PassRole"
- "kinesis:*"
- "lambda:*"
- "logs:*"
- "s3:*"
- "apigateway:*"
- "ec2:*"
functions:
hello:
handler: handler.handler
events:
- http:
path: hello
method: post