I'm trying out the AWS step function. What I'm trying to create.
- Get a list of endpoints from the dynamoDB (https://user:[email protected], https://user2:[email protected], etc..)
- From each domain, I get a list of ids. /all
- For each id in the result, I want to do a series of REST etc https://user:[email protected]/device/{id}(Only one request at the time to each domain in parallel)
- Save the result in a dynamoDB and check if it is duplicated result or not.
I know how to make the rest call and saving to the dynamoDB etc. But the problem or unable to find the answer to is. How can I start run /all in parallel for each domain in the array I get from the dynamoDB?
async.each.