Step Function Fan Out to Parallel workloads

0

I am trying to pass my output from my start execution to my next step. I am trying to get the key values from Step 1 output to step 2 as inputs. I have tried filtered the output from step 1 using $.Payload Using $.Payload I get the below.

"[{"AWSMASTERDT": "2024-03-05 14:44:00", "DATALOADCONFIGID": 1, "PROC": "info.usp_Load_F7", "TABLENAME": "info.F7", "FILENAME": "F7_202403051444.csv"}]"

In step 2 of my Step Function, I receive this input as $ and map successfully into my Execute Load function a successfully. My Step 1 could return up to 7 rows that will each need to be executed in parallel.

How do I set this up?

Current setup is below.

Enter image description here

Monty
已提問 2 個月前檢視次數 250 次
1 個回答
0

If you need to iterate over an array, use the Map state that allows you to do just that.

profile pictureAWS
專家
Uri
已回答 2 個月前
profile picture
專家
已審閱 2 個月前
  • I will need to iterate over dictionaries provided as a payload from another Lambda Function.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南