Home > Software design >  how to trigger step function and get the status failed or success
how to trigger step function and get the status failed or success

Time:03-02

I have been able to use awscli to get start the execution but I need to be able to know when is completed or result is success before it can go to the next step in the pipeline.

aws stepfunctions start-execution --state-machine-arn arn:aws:states:us-west-2:2xx244xxxx:stateMachine:SamplePipeOrchestration-ftpiles --name SamplePipeOrchestration-ftpiles --input {} --region us-west-2 --profile sampledev

CodePudding user response:

You have to develop your own waiter in a form a loop which iteratively queries (e.g. every 10s) the status of your execution (e.g. using describe-execution and checks for a successful or failed completion.

  • Related