Linkedin

Embedded ML models using Amazon SageMaker on AWS Marketplace

Project Overview

Project Detail

This architecture creates an environment where a buyer can consume a seller’s application into their own virtual private cloud (VPC), protecting the buyer’s data privacy while also protecting the seller’s application intellectual property through isolated network access controls and subscription authorization.

  1. Seller writes and packages their model code as a docker image and pushes the image into Amazon Elastic Container Registry (Amazon ECR).

  2. Seller packages and pushes the image as machine learning (ML) model for listing on AWS Marketplace.

  3. Buyer subscribes to the listing on AWS Marketplace using AWS Management Console.

  4. Upon subscription, an Amazon SageMaker instance is provisioned in the buyer VPC in network isolation mode along with the model container image and the invocation endpoint.

  5. Buyer runs the CFN template that deploys the AWS Lambda functions from the zip file located in the Amazon Simple Storage Service (Amazon S3) repository.

  6. Buyer application invokes a Lambda initialization endpoint to validate their subscription from the seller.

  7. Lambda authorizer invokes the Lambda function running in the seller’s VPC to return authorization token valid for a certain duration.

  8. Buyer application invokes a Lambda /request endpoint along with an authorization token and the data to be processed.

  9. Lambda authorizer validates the authorization token and forwards the call to the Lambda proxy.

  10. Lambda proxy calls the SageMaker endpoint running in network isolation mode along with the data to be processed.

  11. SageMaker endpoint returns the response back to the Lambda function along with the processed data.

  12. Lambda stores the response in the Amazon S3 bucket for the buyer application to use.

https://docs.aws.amazon.com/architecture-diagrams/latest/embedded-ml-models-using-sagemaker-on-aws-marketplace/embedded-ml-models-using-sagemaker-on-aws-marketplace.html?did=wp_card&trk=wp_card

To know more about this project connect with us

Embedded ML models using Amazon SageMaker on AWS Marketplace