API Gateway added support for Step Functions currently. Now you can create an AWS Service integration via API Gateway Console.
- Integration Type: AWS Service
- AWS Service: Step Functions
- HTTP method: POST
- Action Type: Use action name
- Action: StartExecution
- Execution role: role to start the execution
Headers:
X-Amz-Target -> 'AWSStepFunctions.StartExecution'
Content-Type -> 'application/x-amz-json-1.0'
Body Mapping Templates/Request payload:
{
"input": "string",
"name": "string",
"stateMachineArn": "string"
}