title: Executing Step Function "Tasks" using ECS Fargate
body: <p>In Re:Invent 2018, AWS seems to have launched new integrations with Step Functions, which includes ECS Fargate support. </p>
  
  <p><a href="https://docs.aws.amazon.com/step-functions/latest/dg/connectors-ecs.html" rel="noreferrer">https://docs.aws.amazon.com/step-functions/latest/dg/connectors-ecs.html</a></p>
  
  <p>I have been digging up on this, and I am able to get the ECS task to startup, and do its thing, but I am not able to send desired output back to the step function. The response syntax too does not seem to have anything that corresponds to the output of a particular state. </p>
  
  <p><a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#API_RunTask_ResponseSyntax" rel="noreferrer">https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#API_RunTask_ResponseSyntax</a></p>
  
  <p>Is it possible for an ECS task to send back output to the step function? Any leads would help.</p>
  
  <p>P.S: I am aware of activities, and have ECS poll for activity, and send task success on completion. But, I was looking to leverage step function calling ECS if that works.</p>