Reputation: 101
Is it possible to call the REST API from AWS step function?. I want to call the REST APIs that is available in Kubernetes container and thrid party API.
Upvotes: 10
Views: 11349
Reputation: 2312
Now it's possible natively, without Lambda: https://docs.aws.amazon.com/step-functions/latest/dg/connect-third-party-apis.html
Upvotes: 0
Reputation: 91
A few months ago, AWS has introduced this option to call HTTP API via AWS API Gateway, "Call API Gateway with Step Functions". It can be helpful if you already expose your API via AWS API Gateway, otherwise, using AWS Lambda function to wrap the HTTP call, may be simpler and probably good enough.
Upvotes: 2
Reputation: 7397
You would have to call your REST API from a Lambda function: a task state with a lambda function specified as a resource.
Upvotes: 6