lflflf
lflflf

Reputation: 67

How do I notice that a file executed from AWS StepFunctions has stopped?

SendCommand is executed in AWS StepFunctions.

I am executing a file in EC2 from SendCommand.

If the file stops in the middle, I want StepFunctions to exit with Fail Status.

How can I achieve this?

Upvotes: 0

Views: 141

Answers (1)

Marcin
Marcin

Reputation: 238957

You have to use Callback with the Task Token. Your application on ec2 has to "know" when it succeeds or fails, and send SendTaskSuccess or SendTaskFailure to Step Functions.

Upvotes: 2

Related Questions