简体   繁体   中英

How to run AWS Step Functions Synchronously using the REST API Gateway

At the moment, there isn't a way to run the StartSyncExecution Step Function method through the REST API Gateway, only through the HTTP API Gateway.

What's a possible work-around for this?

You'll need to create both an HTTP API and a REST API.

  1. You setup the HTTP API that calls the StartSyncExecution on your Step Function.
  2. Setup a Resource and Method that uses the HTTP integration in the REST API.
  3. You put the URL for your HTTP API in to the HTTP integration of the REST API.

If you're sending data to the Step Function, make sure you use POST on both your HTTP API and REST API and set everything to passthrough (it should be by default).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM