AWS Training
Modules Listen Certification

← SageMaker Unified Studio Foundations — The AWS Homework

Starts this lesson and continues through 13 more to the end of the course.

The Guidance — multi-account AIOps, and what the sample code really builds

Why this one needs the closest reading

H1 and H2 describe things you can click or terraform apply. H3 describes an operating model: several accounts, three human approvals, and a chain of events that moves a model from a notebook to a production endpoint. The code behind it is not the same thing.

The Guidance page draws a multi-account system; the sample repository deploys a single-account one. Know which of the two you are being asked about.

H3 means the page Guidance for Collaborative, Unified Data and AI Development on AWS. Everything marked "repo" below was read from GitHub on 2026-11-19 and not executed.

What H3 consists of

One page and two repositories (H3, "Deploy with confidence"):

Piece What it is Last push
The Guidance page Eight diagram tabs with numbered steps, plus six Well-Architected paragraphs no date on page
guidance-for-collaborative-unified-data-and-ai-development-on-aws ("SageMaker Unified Studio Project") A VPC CloudFormation template, three CSV files and two notebooks: a Data Engineer and an ML Engineer build a sales forecast in one project 2024-12-20
sample-smus-aiops ("AI Ops with SageMaker Unified Studio Project") An AWS CDK stack plus seed code that creates GitHub repositories and pipelines when a project is created 2026-04-13

Push dates are pushed_at from the GitHub API (verified 2026-11-19).

⚠️ The first repo predates general availability. Its README says "At the moment of launch SageMaker Unified Studio doesn't have API, SDK or Cloudformation support so all the remaining steps of this guidance will be done from the console". H2 provisions the same objects with Terraform through aws_datazone_* resources, so that sentence is out of date. See lesson 4.

The accounts

Read from the diagrams on the "ML Model Development and Registration Pipeline (Part A)" and "Part B and C" tabs, and the step text (H3):

Account (diagram label) What lives there
AI Platform Shared Services Account ("AI Shared Services account" in the text) The custom EventBridge bus, the Project Git Setup Lambda function, the Step Functions workflow, "CI/CD tooling / Github Actions", the "Model Event Bus", and the Central Model Registry
LoB Dev Account "Unified Studio Project A DEV": notebook, SageMaker AI Pipeline, MLflow, the Dev Model Registry, the project's S3 folder
LoB Test Account "Unified Studio Project A TEST": pipeline, inference endpoint, "Integration Test"
LoB Prod Account "Unified Studio Project A PROD": pipeline, inference endpoint, "A/B Tests"
Governance Account Amazon SageMaker Catalog, "a centralized data registry", connected to Dev, Test and Prod

How the three "Project A" projects relate to a domain is not stated. H1's mechanism for spanning accounts is account association through AWS RAM (lesson 2); H2 recommends "separate domains for development, staging, and production". ⚠️ H3 does not say which it uses.

The 17 steps, in order

The list has 18 entries because step 3 is split into 3a and 3b. Quoted from H3, "Automated Project Provisioning (Technical Implementation)".

Step Who acts What happens
1 Data Scientist "creates Project A – DEV". This "publishes a CreateProject event captured by AWS CloudTrail and bridged to a custom Amazon EventBridge bus in the AI Shared Services account". A Git repository is created "Using the specified Git connection"
2 automation The event reaches the Shared Services bus, "the integration hub for automation workflows across accounts"
3a automation EventBridge triggers "the Project Git Setup AWS Lambda function", which creates the project repository
3b automation A Step Functions "project Git setup workflow provisions the corresponding use case templates (such as Classical Regression, LLM fine-tuning, RAG)", creating build and deploy folders. They "can be kept in separate repositories, with mappings defined in cicd-config.json"
4 Data Scientist, then data producer Subscribes to datasets "(e.g., AWS Glue tables)" in SageMaker Catalog; "Once the data producer approves", they are usable
5 Data Scientist Customises the build pipeline code, "such as adding MLflow experiment tracking", and commits
6 automation CI/CD "is automatically triggered based on path filter rules" on the build folder
7 automation CI/CD runs the SageMaker AI pipeline in the DEV account to "build, train, and evaluate"; on success the model is "automatically registered" in the Dev registry
8 Data Scientist Approves in the Dev Model Registry "(stage = Dev, status = Approved)". An EventBridge event fires and "an AWS Lambda function copies the model artifacts and metadata into the Central Model Registry"
9 AI Engineer Defines "instance type, scaling, and endpoint configuration" in the deploy repo
10 AI Engineer Promotes in the Central Model Registry "to stage = Test with status = Approve"
11 automation The Test approval triggers the test CI/CD pipeline
12 automation Deploys "the model endpoint and optionally the Amazon SageMaker AI pipeline" to the TEST account; integration test results are "recorded back into the Central Model Registry"
13 Governance Officer Reviews the results and approves "(stage = Prod, status = Approved)"
14 automation The production approval triggers the Prod CI/CD pipeline
15 automation Endpoint deployed in production "with A/B testing capability"; performance is logged to the Central Model Registry
16 — (security) "OIDC JWT provides secure, short-lived credentials for GitHub Actions workflows without storing secrets"; cross-account IAM roles; EventBridge rules "in each account" forward events "to the central Project Event Bus using resource-based policies"
17 — (monitoring) "Amazon CloudWatch through AWS CloudFormation stack for comprehensive logging across Dev, Test, and Prod"

Three humans gate promotion: Data Scientist (step 8), AI Engineer (10), Governance Officer (13).

Stages and statuses: two different fields

H3 writes "stage = Dev, status = Approved". SageMaker Model Registry has two separate mechanisms and H3 does not say which one it means.

Field Values Source (verified 2026-11-19)
ModelApprovalStatus Approved | Rejected | PendingManualApproval UpdateModelPackage
ModelLifeCycle (Stage, StageStatus, optional StageDescription) Free strings, 1–63 characters. Predefined templates: stages Proposal, Development, QA, PreProduction, Production, Archived; statuses PendingApproval, InProgress, OnHold, Approved, Rejected, Retired ModelLifeCycle, staging construct set-up

"Dev", "Test" and "Prod" are not predefined, but "You can define your own stage constructs". Both mechanisms emit the same EventBridge event, source aws.sagemaker, detail-type SageMaker Model Package State Change (lifecycle events). Who may set which stage is enforced with IAM condition keys sagemaker:ModelLifeCycle:stage and sagemaker:ModelLifeCycle:stageStatus.

⚠️ H3 step 10 says "status = Approve"; steps 8 and 13 say "Approved". The API value is Approved.

What sample-smus-aiops actually deploys

Its own README describes 12 steps, not 17, and they match H3's "Part A" tab text. Names below are from the README section "Verify Deployment" and the CDK source.

Resource Exact name What it does
EventBridge rule ml-ops-smus-datazone-project-rule-v2 Pattern: source aws.datazone, detail-type AWS API Call via CloudTrail, eventSource datazone.amazonaws.com, eventName CreateProject. Target: the state machine
Step Functions ml-ops-project-setup Waits 10 s, polls project status every 60 s, waits 3 minutes when the status is WAITING_FOR_SPACE; 3-hour timeout
Lambda ai-ops-check-project-status Calls datazone get_project, reads environmentDeploymentDetails.overallDeploymentStatus
Lambda ai-ops-sync-repositories Copies the model_build template into the build repo and sets GitHub secrets
Lambda ai-ops-create-deploy-repo Creates the deploy repo
EventBridge rule MlOpsSmusStack-model-approval-rule Pattern: source aws.sagemaker, detail-type SageMaker Model Package State Change, ModelApprovalStatus Approved
Lambda MlOpsSmusStack-model-approval-trigger Reads tags sagemaker:project-id and AmazonDataZoneDomain from the model package group, then calls the GitHub workflow_dispatch API for deploy_model_pipeline.yml
IAM role + OIDC provider aiops-smus-github-action, token.actions.githubusercontent.com Assumed by GitHub Actions
Secret ml-ops-smus-github-token The GitHub personal access token

The triggering call is aws datazone create-project (CLI reference, verified 2026-11-19).

Other exact names: the project profile must be called regression, because "The Project profile name must match a folder name inside aiops-seed-code". The deploy repository is named {project-id}-{datazone-domain-id}-deploy-repo. The model package group is aiops-{project-id}-models, the pipeline githubactions-<project-id>. A new model version starts at "PendingManualApproval". The build workflow runs on pushes to main under ml_pipelines/** or source_scripts/**, and exits unless the repository variable TRIGGER_PIPELINE_EXECUTION is true. The sample endpoint is one ml.m5.large with variant AllTraffic.

⚠️ Do not use an underscore in the project name: it "will be used in SageMaker pipeline which doesn't support underscores" (repo README).

Where the repo stops short of the page

H3 says Repo has (verified 2026-11-19)
Custom bus in a Shared Services account; rules "in each account" forward events One stack. Both rules are on the account's default bus; no cross-account forwarding
Central Model Registry; a Lambda "copies the model artifacts and metadata" No copy function. The approval Lambda only triggers a GitHub workflow
Stages Dev / Test / Prod, three approvers One rule on ModelApprovalStatus = Approved. ModelLifeCycle appears nowhere in the repo. Only config/dev/ exists; the workflow step is named "Configure Dev Account AWS Credentials"
Templates "Classical Regression, LLM fine-tuning, RAG" One folder: aiops-seed-code/regression
"mappings defined in cicd-config.json" No file or string matching cicd-config in the repo
"Metrics are tracked in MLflow" README step 7: "ML pipeline tracking occurs if tracking server is setup". The string mlflow appears in no file
Integration tests, A/B testing, CloudWatch stack An endpoint test script exists; no A/B variant, no monitoring stack

⚠️ I could not verify that code for the Test and Prod half of H3 is published anywhere — check the repo and ask AWS.

GitHub Actions and OIDC

Both workflows request id-token: write and assume the role in the secret OIDC_ROLE_GITHUB_WORKFLOW through aws-actions/configure-aws-credentials@v4. No AWS access keys are stored in GitHub. IAM documents the pattern (IAM, verified 2026-11-19).

Four things to know before anyone deploys it (repo, verified 2026-11-19):

Git connection. The README has you create a GitHub connection named aws-github-smus-connection, install the AWS connector with "Repository access: Select 'All repositories'", then enable it. The current admin guide warns: "When you enable a Git connection, all users who can sign in to any domain in the account have read and write access to all repositories on that connection... There is no repository-level isolation within a single account. To enforce isolation between repositories, use separate AWS accounts" (Git connections, verified 2026-11-19). ⚠️ The same page lists Bitbucket as a fifth supported provider; H1 lists four.

MLflow now

H3 treats MLflow as part of the project. The current user guide says there are "two options": MLflow Apps and MLflow Tracking Servers, and "MLflow Apps should be preferred" (experiments, verified 2026-11-19). ⚠️ Two current pages disagree. That page has a "Create an MLflow App" procedure under Compute. The other MLflow page says "you can't create a new MLflow App in Amazon SageMaker Unified Studio. You have to create this using SageMaker AI APIs or in SageMaker AI Studio."

H3's internal inconsistencies

I downloaded and viewed all eight diagrams. The step text under several tabs does not describe the picture above it.

Tab Diagram shows Step text is
Overview Personas → Authentication Provider (SSO, SAML IdP) → Projects → backend; callouts 1–8 The 17-step AIOps flow
Generative AI Lakehouse Sales Forecasting Project, Lakehouse, Amazon Q Developer; callouts 1–6 AIOps steps 4–8
Collaborative Model Deployment ML engineers and the Lakehouse; callouts 1–6 AIOps steps 4, 12, 15
Part A Three accounts; callouts 4–8 A 12-step single-flow list
Part B and C Test and Prod accounts; callouts 4, 12, 15 Steps 5–12 of the 12-step list
Three "Technical Implementation" tabs The 12-step flow The 17-step list, three times

Our read: the text blocks look shifted against the diagrams. Nothing on the page describes the sales-forecasting diagrams, which belong to the older repo.

Also: step 1 says the Git connection creates the repository; step 3a says a Lambda function does. In the repo both are true of different repositories: Unified Studio creates the build repo, the Lambda function creates the deploy repo.

What the current docs add: a native CI/CD CLI

⚠️ H3 does not mention it. The user guide now documents "The Amazon SageMaker Unified Studio CI/CD CLI (aws-smus-cicd-cli)", "an open-source command line tool that deploys multi-service data and AI applications across development, test, and production environments from a single manifest file" (CI/CD, verified 2026-11-19). The manifest is manifest.yaml, not cicd-config.json. "Each stage... maps to a separate Amazon SageMaker Unified Studio project and domain. Stages can span different AWS accounts and Regions." Credentials come "through IAM roles, OIDC federation, or environment variables". Limits: "Automatic rollback is not supported"; "The CLI does not create Amazon SageMaker Unified Studio domains or projects"; "Native notebook deployment is not yet supported".

Prerequisites, cost, clean-up

sample-smus-aiops (README): PowerUserAccess "or equivalent"; Python 3.9 or later; AWS CDK CLI v2.188.0 or later; Docker Desktop; Node.js 18.x or later; a GitHub organisation. Project creation takes "5-10 minutes". ⚠️ The README states no cost. Clean-up order: endpoint, endpoint config and model; pipeline and S3 artifacts; model package group; cdk destroy; then project, profile, both GitHub repos. The role aiops-smus-github-action and the OIDC provider "may need to be deleted manually" — the stack sets them to RETAIN.

The older repo (README): an organization or account instance of IAM Identity Center in the same Region; twelve supported Regions; domain creation "typically ~5 minutes". Cost: "approximately $2,000 per month" at 4 hours a day, 22 days. ⚠️ The date in that sentence is an unfilled placeholder ("As of "), and the sample cost table's five rows add up to $636.52, not $2,000. The largest row is "SageMaker Asynchronous Inference", ml.m5.12xlarge, $486.78. Treat neither figure as a quote. Clean-up: delete projects, the domain, the CloudFormation stack, then optionally the Identity Center users.

Well-Architected notes

Six short paragraphs, one per pillar (H3, "Well-Architected Pillars"), each about Unified Studio in general. None addresses the multi-account design. Only Security has specifics: "an SSO experience through deployed web domains that can be federated to IdPs such as IAM Identity Center".

Our read

Ours, not AWS's. H3 is an MLOps reference for teams that deploy real-time endpoints across accounts. Every path in it ends at a persistent SageMaker AI endpoint. SM0's lead candidate is nightly scoring, which per SM0 lesson 3 means no endpoint. Take three ideas from H3: approval as an event, stage gates enforced by IAM condition keys, OIDC instead of keys. Leave the rest until a model needs promoting. If it does, evaluate the documented aws-smus-cicd-cli first. Decisions are collected in lesson 6.

Questions you should be able to answer as the SME

  1. How many accounts does H3 draw? Five roles: AI Platform Shared Services, LoB Dev, LoB Test, LoB Prod, Governance (H3, Part A and Part B/C diagrams).
  2. What happens at step 8? The Data Scientist approves in the Dev Model Registry "(stage = Dev, status = Approved)"; an EventBridge event causes a Lambda function to copy "the model artifacts and metadata into the Central Model Registry" (H3).
  3. Who approves for production? The Governance Officer, step 13, "(stage = Prod, status = Approved)" in the Central Registry (H3).
  4. What starts the automation? A CreateProject call recorded by CloudTrail. In the repo the rule ml-ops-smus-datazone-project-rule-v2 starts state machine ml-ops-project-setup (stack.py).
  5. Does the sample code deploy to Test and Prod accounts? No. It is one stack in one account with a dev config only (repo, verified 2026-11-19).
  6. What is cicd-config.json? H3 step 3b says it maps build and deploy repositories. It does not exist in sample-smus-aiops.
  7. What status does a newly registered model have? "PendingManualApproval"; the valid values are Approved | Rejected | PendingManualApproval (API).
  8. How would you stop a data scientist promoting to production? IAM condition keys sagemaker:ModelLifeCycle:stage and sagemaker:ModelLifeCycle:stageStatus (set-up).
  9. Why must the profile be named regression? The name "must match a folder name inside aiops-seed-code" (repo README).
  10. What does enabling a Git connection expose? "all users who can sign in to any domain in the account have read and write access to all repositories on that connection" (admin guide).
  11. What does the Guidance cost? Unknown. The older README says about $2,000 a month and its own table sums to $636.52; the AIOps README gives nothing.

What to ask AWS next

  1. "Is there published code for the Central Model Registry and the Test and Prod stages?" The page describes them; the linked repo contains none of it.
  2. "Should we use sample-smus-aiops or aws-smus-cicd-cli?" The Guidance omits the CLI that the user guide documents for the same job.
  3. "Does H3's 'stage' mean ModelLifeCycle?" The page never says, and the repo uses only ModelApprovalStatus.
  4. "In H3, are Dev, Test and Prod one domain with associated accounts, or three domains?" H2 says separate domains; H3 does not say.
  5. "How do we use a Git connection without giving every domain user write access to every repository?" The admin guide's only stated answer is separate AWS accounts.

Check yourself

  1. Which three people approve a model in H3, and at which steps?
  2. The approval rule in the repo matches which field and value?
  3. Name two things H3 describes that the sample repo does not contain.
  4. H3 says "without storing secrets". What secret does the repo store, and where?
  5. What is the predefined ModelLifeCycle stage closest to H3's "Test"?
Answers
  1. Data Scientist at step 8 (Dev), AI Engineer at step 10 (Test), Governance Officer at step 13 (Prod).
  2. ModelApprovalStatus = Approved, on detail-type SageMaker Model Package State Change. It does not look at stage, and it does not filter by project.
  3. Any two of: the Central Model Registry and its copy function, Test and Prod deployment, cicd-config.json, LLM fine-tuning and RAG templates, MLflow tracking code, A/B testing.
  4. A GitHub personal access token (Classic) in Secrets Manager, secret ml-ops-smus-github-token. OIDC covers GitHub-to-AWS only.
  5. QA or PreProduction. "Test" itself is not predefined, though custom stage names are allowed.

Teaching this section

← PreviousThe Terraform module for a multi-team domainNext →From homework to decisions — what the three documents leave open