Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i call sagemaker inference endpoint using API gateway

I am trying to call sagemaker inference endpoint from api gateway with AWS Integration.I don't want to use lamdba in between of API gateway and sagemaker runtime. I followed this doc to setup api gateway method but it fails.

How can i call sagemaker inference endpoint from API gateway?

Web Browser ----> API Gateway ----> Sagemaker endpoint

like image 762
Naveen Sharma Avatar asked Mar 05 '23 12:03

Naveen Sharma


1 Answers

API Gateway supports integration with AWS services directly (without the Lambda). You can follow the instructions at https://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-aws-proxy.html.

When you go to Step 4 in the instructions above, for the AWS Service option, you can choose 'SageMaker Runtime' to target the invoke endpoints.

like image 194
Arun Nagarajan Avatar answered Apr 08 '23 13:04

Arun Nagarajan