<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/automating-model-training-and-delivery-from-amazon-sagemaker-ai-to-amazon-eks-4z3xtlwbn" -->

---
title: Automating Model Training and Delivery from Amazon...
description: A detailed end-to-end walkthrough of automating an XGBoost regression model&#x27;s lifecycle using Amazon SageMaker AI and AWS DevOps services. The workflow covers...
canonical: https://daily.dev/posts/automating-model-training-and-delivery-from-amazon-sagemaker-ai-to-amazon-eks-4z3xtlwbn
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Automating Model Training and Delivery from Amazon SageMaker AI to Amazon EKS | daily.dev
og:description: A detailed end-to-end walkthrough of automating an XGBoost regression model&#x27;s lifecycle using Amazon SageMaker AI and AWS DevOps services. The workflow covers...
og:url: https://daily.dev/posts/automating-model-training-and-delivery-from-amazon-sagemaker-ai-to-amazon-eks-4z3xtlwbn
og:image: https://api.daily.dev/og/posts/4Z3xtLwBn.png
og:image:alt: Automating Model Training and Delivery from Amazon SageMaker AI to Amazon EKS
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Automating Model Training and Delivery from Amazon SageMaker AI to Amazon EKS

**[Medium](https://daily.dev/sources/medium_js)** · 12 min read · 1 upvotes · 0 comments

## Summary

A detailed end-to-end walkthrough of automating an XGBoost regression model's lifecycle using Amazon SageMaker AI and AWS DevOps services. The workflow covers a SageMaker Pipeline with six steps: data preprocessing, automatic hyperparameter tuning (Bayesian search minimizing RMSE), model evaluation, SHAP-based explainability via SageMaker Clarify, MLflow experiment tracking, and model registration. Once a model package is approved in SageMaker Model Registry, an EventBridge rule triggers AWS CodeBuild, which downloads the exact approved model artifact, builds a FastAPI inference container, pushes it to Amazon ECR, and deploys it to Amazon EKS via a rendered Kubernetes manifest. The explicit handoff via ModelPackageArn ensures deterministic, traceable deployments from training to production.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://garystafford.medium.com/automating-model-training-and-delivery-from-amazon-sagemaker-ai-to-amazon-eks-4bf6e48b9f01>

## Questions this post answers

### Is Amazon SageMaker Clarify still available for new customers?

No, AWS has closed SageMaker Clarify to new customers as of July 2026. Existing customers can continue using it, but AWS does not plan to introduce new features for the service. New implementations are advised to evaluate direct SHAP-based alternatives instead of relying on Clarify for model explainability.

_Track SageMaker Clarify's deprecation and SHAP alternatives on daily.dev before your next MLOps design decision._

### How do I ensure a Kubernetes deployment uses the exact SageMaker model package that was approved, rather than an ambiguous 'latest approved' lookup?

Pass the specific ModelPackageArn from the EventBridge approval event directly into the CodeBuild job as an environment variable via an input transformer, rather than having the deployment logic look up the latest approved model separately. CodeBuild then validates this ARN, fails fast if it's missing, and downloads that exact model artifact from S3 for containerization.

_Developers wiring SageMaker approvals to Kubernetes deploys use daily.dev to keep MLOps pipeline patterns handy._

### What XGBoost hyperparameters should I tune with SageMaker Automatic Model Tuning for a regression model?

Tune eta (learning rate), max_depth, min_child_weight, subsample, and colsample_bytree using Bayesian optimization to minimize validation RMSE. These five ranges cover the common controls for XGBoost regression: learning rate, tree depth, minimum child weight, row sampling, and column sampling, with the candidate having the lowest validation error selected as the best model artifact.

_Anyone tuning XGBoost regression models on SageMaker can revisit hyperparameter guidance like this on daily.dev._

## Similar posts on daily.dev

- [\[AWS-AI\] Amazon SageMaker Explained: From Data Preparation to Model Deployment](https://daily.dev/posts/aws-ai-amazon-sagemaker-explained-from-data-preparation-to-model-deployment-izl4ihjhw) · Medium · 0 upvotes · 0 comments
- [The Pipeline That Thinks: Building an AI-Powered DevSecOps Pipeline on AWS EKS](https://daily.dev/posts/the-pipeline-that-thinks-building-an-ai-powered-devsecops-pipeline-on-aws-eks-kztltafof) · Cloud Native Now · 0 upvotes · 0 comments
- [Lyft Rearchitects ML Platform with Hybrid AWS SageMaker-Kubernetes Approach](https://daily.dev/posts/lyft-rearchitects-ml-platform-with-hybrid-aws-sagemaker-kubernetes-approach-ntubrebjb) · InfoQ · 0 upvotes · 0 comments

---

Tags: [#aws](https://daily.dev/tags/aws), [#mlops](https://daily.dev/tags/mlops), [#xgboost](https://daily.dev/tags/xgboost)

[View this post on daily.dev](https://daily.dev/posts/automating-model-training-and-delivery-from-amazon-sagemaker-ai-to-amazon-eks-4z3xtlwbn)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Automating Model Training and Delivery from Amazon SageMaker AI to Amazon EKS","url":"https://daily.dev/posts/automating-model-training-and-delivery-from-amazon-sagemaker-ai-to-amazon-eks-4z3xtlwbn","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/automating-model-training-and-delivery-from-amazon-sagemaker-ai-to-amazon-eks-4z3xtlwbn"},"datePublished":"2026-07-19T07:32:47.861Z","dateModified":"2026-09-14T06:01:02.758Z","description":"A detailed end-to-end walkthrough of automating an XGBoost regression model's lifecycle using Amazon SageMaker AI and AWS DevOps services. The workflow covers...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e2356c86a918cdb0ecf9a667b82ef4a4?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e2356c86a918cdb0ecf9a667b82ef4a4?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Medium","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/automating-model-training-and-delivery-from-amazon-sagemaker-ai-to-amazon-eks-4z3xtlwbn","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"aws,mlops,xgboost","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"Automating Model Training and Delivery from Amazon SageMaker AI to Amazon EKS"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/automating-model-training-and-delivery-from-amazon-sagemaker-ai-to-amazon-eks-4z3xtlwbn#faq","mainEntity":[{"@type":"Question","name":"Is Amazon SageMaker Clarify still available for new customers?","acceptedAnswer":{"@type":"Answer","text":"No, AWS has closed SageMaker Clarify to new customers as of July 2026. Existing customers can continue using it, but AWS does not plan to introduce new features for the service. New implementations are advised to evaluate direct SHAP-based alternatives instead of relying on Clarify for model explainability. Track SageMaker Clarify's deprecation and SHAP alternatives on daily.dev before your next MLOps design decision."}},{"@type":"Question","name":"How do I ensure a Kubernetes deployment uses the exact SageMaker model package that was approved, rather than an ambiguous 'latest approved' lookup?","acceptedAnswer":{"@type":"Answer","text":"Pass the specific ModelPackageArn from the EventBridge approval event directly into the CodeBuild job as an environment variable via an input transformer, rather than having the deployment logic look up the latest approved model separately. CodeBuild then validates this ARN, fails fast if it's missing, and downloads that exact model artifact from S3 for containerization. Developers wiring SageMaker approvals to Kubernetes deploys use daily.dev to keep MLOps pipeline patterns handy."}},{"@type":"Question","name":"What XGBoost hyperparameters should I tune with SageMaker Automatic Model Tuning for a regression model?","acceptedAnswer":{"@type":"Answer","text":"Tune eta (learning rate), max_depth, min_child_weight, subsample, and colsample_bytree using Bayesian optimization to minimize validation RMSE. These five ranges cover the common controls for XGBoost regression: learning rate, tree depth, minimum child weight, row sampling, and column sampling, with the candidate having the lowest validation error selected as the best model artifact. Anyone tuning XGBoost regression models on SageMaker can revisit hyperparameter guidance like this on daily.dev."}}]}
```

