-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserverless.yml
47 lines (41 loc) · 1016 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
service: serverless-python-template
provider:
name: aws
runtime: python3.6
# the following are used for local deployment
stage: dev
region: ap-northeast-1
iamRoleStatements:
# - Effect: Allow
# Action:
# - dynamodb:DescribeTable
# - dynamodb:BatchGetItem
# - dynamodb:BatchWriteItem
# - dynamodb:DeleteItem
# - dynamodb:GetItem
# - dynamodb:PutItem
# - dynamodb:Query
# - dynamodb:Scan
# - dynamodb:UpdateItem
# Resource: "arn:aws:dynamodb:*:*:table/${self:service}-*"
# you can define service wide environment variables here
# environment:
# variable1: value1
# you can add packaging information here
#package:
# include:
# - include-me.py
# - include-me-dir/**
# exclude:
# - exclude-me.py
# - exclude-me-dir/**
functions:
hello:
handler: handlers/hello.handler
memorySize: 512
timeout: 15
events:
- http:
path: hello
method: get
integration: lambda