Pair your devices with a code and playback position follows you: pause on this device, hit resume on the other. Position is saved to the site every minute and on pause.
Open this panel on your other device and enter the same code.
Starts this lesson and continues through 13 more to the end of the course.
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.
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.
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 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).
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.
sample-smus-aiops actually deploysIts 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).
| 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.
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):
repo,
workflow and write:packages in Secrets Manager. OIDC removes AWS keys from GitHub; it does not
remove the GitHub token from AWS.repo:your-github-organization/*: every repository in the
organisation can assume the role. In stack.py the role also trusts the account root.iam:CreateRole, iam:Attach*, iam:Put* and s3:Delete* on
Resource: "*", and the deploy workflow bootstraps CDK with
--cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess. H3 calls this
"least-privilege permissions".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.
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."
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.
⚠️ 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".
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 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.
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".
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.
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).dev config only (repo, verified 2026-11-19).cicd-config.json? H3 step 3b says it maps build and deploy repositories. It does
not exist in sample-smus-aiops.Approved | Rejected | PendingManualApproval
(API).sagemaker:ModelLifeCycle:stage and sagemaker:ModelLifeCycle:stageStatus
(set-up).regression? The name "must match a folder name inside
aiops-seed-code" (repo README).sample-smus-aiops or aws-smus-cicd-cli?" The Guidance omits the CLI that
the user guide documents for the same job.ModelLifeCycle?" The page never says, and the repo uses only
ModelApprovalStatus.ModelLifeCycle stage closest to H3's "Test"?ModelApprovalStatus = Approved, on detail-type SageMaker Model Package State Change. It
does not look at stage, and it does not filter by project.cicd-config.json, LLM fine-tuning and RAG templates, MLflow tracking code, A/B testing.ml-ops-smus-github-token.
OIDC covers GitHub-to-AWS only.QA or PreProduction. "Test" itself is not predefined, though custom stage names are allowed.