How to get API Gateway function output from a step-function

0 votes

I have created step functions and invoked them as specified in AWS documentation. For output, I am getting

"executionArn": "arn:aws:states:us-east-1:123456789012:execution:HelloWorld:MyExecution""startDate": 1486768956.878 

} 

But, instead of above response I want my step functions output. How to achive that?

Dec 27, 2018 in AWS by datageek
• 3,050 points
1,746 views

1 answer to this question.

0 votes

First of all the step functions executes asynchronously and API Gateway is only capable of invoking the step function only. And they do not immediately return results. 

So, to get a function output from step function output, you actually need to create a new second method in API Gateway, which will call the Step Function with the DescribeExecution action. For more refer - step functions.

answered Dec 27, 2018 by Archana
• 5,600 points

Related Questions In AWS

0 votes
1 answer
+2 votes
2 answers

How do we move a domain from Hostgator to AWS Route 53?

I found this  Before transferring a domain, make ...READ MORE

answered Aug 3, 2018 in AWS by Priyaj
• 57,550 points
2,184 views
+1 vote
3 answers

Not able to pass params POST to AWS Lambda from Amazon API Gateway

For this template : application/x-www-form-urlencoded  This line below will ...READ MORE

answered Jun 13, 2018 in AWS by Cloud gunner
• 4,630 points
4,488 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer