Santhosh Kumar
Santhosh Kumar

Reputation: 101

AWS step function - Calls REST API

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

Answers (3)

Distdev
Distdev

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

Yossi Cohen
Yossi Cohen

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

jogold
jogold

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.

See Task - Lambda Functions.

Upvotes: 6

Related Questions