-
Notifications
You must be signed in to change notification settings - Fork 4
/
serverless.yml
57 lines (49 loc) · 1.79 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
55
56
57
service: lambda-serverless-template
# you can go to here: https://serverless.com/framework/docs/providers/aws/guide/serverless.yml/
# to see a full example for all the things supported by the serverless.yml
custom:
stage: ${opt:stage, self:provider.stage}
serverless-iam-roles-per-function: # for the serverless-iam-roles-per-function plugin
defaultInherit: true # all the functions would inherit the common permissions
provider:
name: aws
runtime: nodejs8.10
stage: dev
# iamRoleStatements: # common permissions that each function would inherit
# - Effect: Allow
# Action: ....
# Resource: ....
# environment: # common environment variables each function would inherit
# foo: bar
functions:
hello-world:
handler: src/functions/hello-world.handler
description: say hello world!
# timeout: 6 # timeout for the function, Serverless defaults to 6s
# memory: 1024 # memory allocation for the function, Serverless defaults to 1024MB
# events: # see https://serverless.com/framework/docs/providers/aws/events/ for all supported AWS events
# - http:
# path: /
# method: get
# iamRoleStatements: # per-function IAM policy as enabled by the serverless-iam-roles-per-function plugin
# - Effect: Allow
# Action: ....
# Resource: ....
# environment: # function specific environment variables
# bar: foo
# you can add CloudFormation resource templates here
# resources:
# Resources:
package:
exclude:
- "*"
- examples/**
- src/**/*.spec.js
- test/**
- node_modules/*/test/**/*.*
- ".terraform/**"
- "terraform/**"
plugins:
- serverless-pseudo-parameters
- serverless-iam-roles-per-function
- "@perform/serverless-dazn-cloudwatch-logs"