Slide 31
Slide 31 text
© DMM
Rule
Amazon EventBridge AWS Lambda
改善実装 v2
31
AWS Step Functions
RunTask: ECSタスクを同期実行
失敗時はParseCauseへ
ParseCause: タスクの終了原因をJSON
へパース
ErrorChoice: 終了原因が指定した理由
にマッチする場合はRunTaskへ遷移
"Choices": [
{
"Next": "RunTask",
"Or": [
{
"StringMatches": "Timeout waiting for network interface provisioning to complete*",
"Variable": "$.ParsedCause.StoppedReason"
},
{
"StringMatches": "ResourceInitializationError: failed to configure ENI: failed to setup regular eni: context
deadline exceeded",
"Variable": "$.ParsedCause.StoppedReason"
},
{
"StringMatches": "ResourceInitializationError: failed to configure ENI: failed to setup regular eni: netplugin
failed with no error message",
"Variable": "$.ParsedCause.StoppedReason"
}
]
}
],
…
]