Passing data between two ecs tasks using step functions

0

There are two fargate tasks that runs on scheduled time . I want to pass the output of one ecs task as an input to another using step functions. But I am getting stucked here . The problem I am facing is with the key used in both the tasks which need to be same as the key used in state machine defination in ResultPath / OutputPath. Lets say I am passing a list in first task output like return ( "news_items": news_items } The ResultPath I am using is $.news_items But in the second task it is not receiving the correct input Please help me with this issue

2개 답변
0
profile picture
답변함 4달 전
0

I believe you need first to check the size of the data that needs to be sent. If the data is small (I believe the threshold is 256K), you can send the data within the step function. However, if the data is more than that, you will need to use middleware (as suggested by the answer above). In other words, in the latter case, you need to make the first task write the data as output to s3 and the next task reads the data as input from the same s3.

Ahmed
답변함 4달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠