63 lines
2.0 KiB
JSON
63 lines
2.0 KiB
JSON
|
{
|
||
|
"version": 2,
|
||
|
"waiters": {
|
||
|
"GroupExists": {
|
||
|
"acceptors": [
|
||
|
{
|
||
|
"argument": "length(AutoScalingGroups) > `0`",
|
||
|
"expected": true,
|
||
|
"matcher": "path",
|
||
|
"state": "success"
|
||
|
},
|
||
|
{
|
||
|
"argument": "length(AutoScalingGroups) > `0`",
|
||
|
"expected": false,
|
||
|
"matcher": "path",
|
||
|
"state": "retry"
|
||
|
}
|
||
|
],
|
||
|
"delay": 5,
|
||
|
"maxAttempts": 10,
|
||
|
"operation": "DescribeAutoScalingGroups"
|
||
|
},
|
||
|
"GroupInService": {
|
||
|
"acceptors": [
|
||
|
{
|
||
|
"argument": "contains(AutoScalingGroups[].[length(Instances[?LifecycleState=='InService']) >= MinSize][], `false`)",
|
||
|
"expected": false,
|
||
|
"matcher": "path",
|
||
|
"state": "success"
|
||
|
},
|
||
|
{
|
||
|
"argument": "contains(AutoScalingGroups[].[length(Instances[?LifecycleState=='InService']) >= MinSize][], `false`)",
|
||
|
"expected": true,
|
||
|
"matcher": "path",
|
||
|
"state": "retry"
|
||
|
}
|
||
|
],
|
||
|
"delay": 15,
|
||
|
"maxAttempts": 40,
|
||
|
"operation": "DescribeAutoScalingGroups"
|
||
|
},
|
||
|
"GroupNotExists": {
|
||
|
"acceptors": [
|
||
|
{
|
||
|
"argument": "length(AutoScalingGroups) > `0`",
|
||
|
"expected": false,
|
||
|
"matcher": "path",
|
||
|
"state": "success"
|
||
|
},
|
||
|
{
|
||
|
"argument": "length(AutoScalingGroups) > `0`",
|
||
|
"expected": true,
|
||
|
"matcher": "path",
|
||
|
"state": "retry"
|
||
|
}
|
||
|
],
|
||
|
"delay": 15,
|
||
|
"maxAttempts": 40,
|
||
|
"operation": "DescribeAutoScalingGroups"
|
||
|
}
|
||
|
}
|
||
|
}
|