-
Notifications
You must be signed in to change notification settings - Fork 0
/
template_invoke_lambda_with_lambda.yaml
34 lines (31 loc) · 1.31 KB
/
template_invoke_lambda_with_lambda.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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Sample SAM Template for test-aws
Globals:
Function:
MemorySize: 128
Runtime: nodejs12.x
Timeout: 5
Resources:
CalculatorInvoked:
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
CodeUri: InvokeLambdaWithLambda-SAM/app/
Handler: calculator.handler
Events:
postadd:
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: /calc
Method: post
CalculatorInvokeCal:
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
CodeUri: InvokeLambdaWithLambda-SAM/app/
Handler: calculatorAdd.handler
Events:
postaddd:
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: /calcu
Method: post