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,090 points
4,254 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,640 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

How to add a tag to aws api gateway using aws cli?

Hi@akhtar, You need to use a tag-resource method in ...READ MORE

answered Dec 8, 2020 in AWS by MD
• 95,460 points
1,877 views
+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
• 58,020 points
5,974 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP