Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

Amazon SageMaker endpoint via API Gateway and Lambda

Created with SnapAmazon API GatewayAWS LambdaAmazon SageMaker

Deploys a SageMaker Jumpstart model endpoint and an API Gateway endpoint.

The model deployed in this pattern can be changed by modifying the MODEL_ID attribute in app.py file.
The API Gateway is protected using an API Key. To query the API Gateway endpoint, x-api-key header needs to be added to the HTTP request.

< Back to all patterns


GitHub icon Visit the GitHub repo for this pattern.

Download

git clone https://github.com/aws-samples/serverless-patterns/ cd serverless-patterns/apigw-lambda-sagemaker-jumpstartendpoint-cdk-python

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Kaustav Dey

Presented by Kaustav Dey

Solution Architect at AWS

Follow on LinkedIn