How to invoke AWS step function using API Gateway?

0 votes

It's given in AWS Documentation that step function can be invoked using HTTP API. Here is the snippet:

Step Functions can be accessed and used with the Step Functions console, the AWS SDKs, or an HTTP API

Apart from this I couldn't find any other information. Does anyone know how to invoke AWS step function using API gateway, similar to the way it invokes Lambda functions?

Mar 18, 2019 in AWS by datageek
• 3,050 points
516 views

1 answer to this question.

0 votes

It is possible to call StepFunction from API Gateway. You can simply follow the steps listed below:

  • For Integration Type, choose AWS Service
  • For AWS Service, choose Step Functions from the list
  • For HTTP Method, choose POST from the list
  • For Action Type, choose Use action name
  • For Action, type StartExecution
  • For Execution Role, type ARN of role with API Gateway trusted identity provider and attached policy AWSStepFunctionsFullAccess
answered Mar 18, 2019 by Archana
• 5,600 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

How to Enable CORS for an AWS API Gateway Resource

Since you're using Lambda Proxy integration for ...READ MORE

answered Jul 10, 2018 in AWS by Hammer
• 360 points
1,662 views
0 votes
1 answer

How to get AWS account/service cost using CloudWatch API?

You can check this link for a ...READ MORE

answered Jul 13, 2018 in AWS by Priyaj
• 57,530 points
181 views
0 votes
1 answer
0 votes
1 answer

how to access AWS S3 from Lambda in VPC

With boto3, the S3 urls are virtual by default, ...READ MORE

answered Sep 28, 2018 in AWS by Priyaj
• 57,530 points
3,724 views
0 votes
1 answer
0 votes
1 answer

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

First of all the step functions executes ...READ MORE

answered Dec 27, 2018 in AWS by Archana
• 5,600 points
1,503 views
0 votes
1 answer

How to invoke the AWS lambda function from Java code

There are 2 methods in this class which should ...READ MORE

answered Feb 19, 2019 in AWS by Archana
• 5,600 points
2,571 views