querying-aws-sagemaker-unified-studio-system-tables

Installation
SKILL.md

Query Amazon SageMaker Unified Studio System Tables

Overview

Works best with the AWS MCP server for sandboxed execution and audit logging. All commands below use the AWS CLI and work in any environment with configured AWS credentials. Use IAM roles or temporary credentials; avoid long-lived access keys.

Amazon SageMaker Unified Studio publishes system tables: read-only Apache Iceberg tables in the AWS-managed S3 table bucket aws-sagemaker-unified-studio, in the account and Region that hold the domain's usage export. The bucket holds the usage tables, a daily inventory of each domain. One namespace holds one domain:

"s3tablescatalog/aws-sagemaker-unified-studio"."<namespace>"."domain_entity"
"s3tablescatalog/aws-sagemaker-unified-studio"."<namespace>"."user_profile"
  • <namespace> is the domain id lowercased with - replaced by _: domain dzd-ab12cd34ef56gh lives in namespace dzd_ab12cd34ef56gh.
  • domain_entity holds every entity category in one table, told apart by category_enum. user_profile holds one row per user profile.
  • Each daily snapshot appends a full copy of the inventory, stamped with one snapshot_time. Rows are kept 365 days. The latest snapshot is the current state; all snapshots together are the history.

The tables are preferred over the DataZone list APIs because the APIs return current state only, page per project, and need one call per listing or approver project to count subscriptions. The tables answer the same question with one GROUP BY, and they also answer history questions (what changed, when, by whom, what was deleted) that the APIs cannot.

Installs
39
GitHub Stars
3.6K
First Seen
2 days ago