kianho / sagemaker-safe-deployment-pipeline

Safe deployment pipeline for Amazon SageMaker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Amazon SageMaker Safe Deployment Pipeline

Introduction

This is a sample solution to build a safe deployment pipeline for Amazon SageMaker. This example could be useful for any organization looking to operationalize machine learning with native AWS development tools such as AWS CodePipeline, AWS CodeBuild and AWS CodeDeploy.

This solution provides as safe deployment by creating an AWS Lambda API that calls into an Amazon SageMaker Endpoint for real-time inference.

Prerequisites

Architecture Diagram

app-overview

Components Details

  • AWS SageMaker – This solution uses SageMaker to train the model to be used and host the model at an endpoint, where it can be accessed via HTTP/HTTPS requests
  • AWS CodePipeline – CodePipeline has various stages defined in CloudFormation which step through which actions must be taken in which order to go from source code to creation of the production endpoint.
  • AWS CodeBuild – This solution uses CodeBuild to build the source code from GitHub
  • AWS CloudFormation – This solution uses the CloudFormation Template language, in either YAML or JSON, to create each resource including custom resource.
  • AWS S3 – Artifacts created throughout the pipeline as well as the data for the model is stored in an Simple Storage Service (S3) Bucket.

Launch CFN stack

About

Safe deployment pipeline for Amazon SageMaker


Languages

Language:Python 60.6%Language:Jupyter Notebook 39.4%