AWS 단계 함수 맵 유형을 사용하여 매핑 된 각 항목에 대한 상태 머신 실행을 시작하려고합니다. 작동하지 않고 예제를 찾을 수 없습니다. 이에 대한 지원이 있습니까? 그렇다면 누구든지 내가 여기서 뭘 잘못하고 있는지 말해 줄 수 있습니까?
"Batch": {
"Type": "Map",
"InputPath": "$.batch", // this will contain an array of 20 files to be processed
"MaxConcurrency": 0,
"Iterator": {
"StartAt": "BatchProcess",
"States": {
"BatchProcess": {
"Type": "Task",
"Resource": "arn:aws:states:::states:startExecution.sync:2",
"Parameters": {
"Input": {
"Files.$": "$.batch.Files"
},
"StateMachineArn": "my-state-machine-arn"
},
"ResultPath": "$.batch",
"OutputPath": "$.batch.Output",
"Next": "Done"
}
}
},
"ResultPath": "$.batch",
"OutputPath": "$.batch.Output",
"Next": "next-lambda-function-after-all-files-in-batch-are-processed"
},
문서 기반 : https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-map-state.html
당신은 사용해야 ItemsPath
하지, InputPath
당신의 배열에 포인트.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다