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
gefragt vor 2 Monaten251 Aufrufe
1 Antwort
0

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

profile pictureAWS
EXPERTE
Uri
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
  • I will need to iterate over dictionaries provided as a payload from another Lambda Function.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen