-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtemplate.yaml
41 lines (38 loc) · 890 Bytes
/
template.yaml
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
offline-development-api
Globals:
Function:
Timeout: 60
Resources:
GetAllItemsFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: get-all/
Handler: app.lambdaHandler
Runtime: nodejs12.x
Events:
GetItem:
Type: Api
Properties:
Path: /items/
Method: get
Environment:
Variables:
USE_LOCAL_DYNAMODB: "false"
GetItemFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: get-item/
Handler: app.lambdaHandler
Runtime: nodejs12.x
Events:
GetItem:
Type: Api
Properties:
Path: /items/{itemId}
Method: get
Environment:
Variables:
USE_LOCAL_DYNAMODB: "false"