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
demandé il y a 2 mois250 vues
1 réponse
0

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

profile pictureAWS
EXPERT
Uri
répondu il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois
  • I will need to iterate over dictionaries provided as a payload from another Lambda Function.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions