Reputation: 67
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
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