forked from beabetterdevv/lambda_local
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yaml
56 lines (23 loc) · 859 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
lamda local demo
Resources:
LambdaDemoFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: lambda/ # format is projectPath/
Handler: lambda.lambdaHandler # format is filename.functionName
Runtime: nodejs12.x
ApiGatewayFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: apigateway/ # format is projectPath/
Handler: apigateway.lambdaHandler # format is filename.functionName
Runtime: nodejs12.x
Events:
HelloWorld:
Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api
Properties:
Path: /hello
Method: get