-
Notifications
You must be signed in to change notification settings - Fork 5
/
template.yaml
43 lines (39 loc) · 1.19 KB
/
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Template for net-run-rate-calculator state machine
Globals:
Function:
Timeout: 3
Runtime: nodejs12.x
CodeUri: dist
Resources:
CreateMatchesFunction:
Type: AWS::Serverless::Function
Properties:
Handler: createMatchesHandler.handler
CalculateRunRateFunction:
Type: AWS::Serverless::Function
Properties:
Handler: calculateRunRateHandler.handler
NetRunRateCalculatorStateMachine:
Type: AWS::StepFunctions::StateMachine
Properties:
StateMachineName: net-run-rate-calculator-state-machine
StateMachineType: STANDARD
DefinitionString: !Sub |-
{
"Comment": "State Maching to calculate net run rates for given teams.",
"StartAt": "CreateMatches",
"States": {
"CreateMatches": {
"Type": "Task",
"Resource": "${CreateMatchesFunction.Arn}",
"Next": "CalculateRunRate"
},
"CalculateRunRate": {
"Type": "Task",
"Resource": "${CalculateRunRateFunction.Arn}",
"End": true
}
}
}