-
Notifications
You must be signed in to change notification settings - Fork 0
/
stepfunc.json
35 lines (35 loc) · 918 Bytes
/
stepfunc.json
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
{
"Comment": "Launch Spot Instance",
"StartAt": "RequestSpotInstance",
"States": {
"RequestSpotInstance": {
"Type": "Task",
"Resource": "arn:aws:lambda:ap-northeast-1:xxxxxxxxxxxx:function:RequestSpotInstance",
"Next": "waitBidding"
},
"waitBidding": {
"Type": "Wait",
"Seconds": 60,
"Next": "GetBiddingResult"
},
"GetBiddingResult": {
"Type": "Task",
"Resource": "arn:aws:lambda:ap-northeast-1:xxxxxxxxxxxx:function:GetBiddingResult",
"Next": "CheckResult"
},
"CheckResult": {
"Type": "Choice",
"Choices": [{
"Variable": "$.LaunchedInstance",
"StringEquals": "0",
"End": true
}],
"Default": "LaunchTagAndEIP"
},
"LaunchTagAndEIP": {
"Type": "Task",
"Resource": "arn:aws:lambda:ap-northeast-1:xxxxxxxxxxxx:function:LaunchTagAndEIP",
"End": true
}
}
}