Govern cross-account data with SageMaker Unified Studio and Amazon Quick
Publish existing AWS Glue tables to SageMaker Catalog, approve cross-account access with Lake Formation column filters, and query the data in place from another account. Then add Amazon Quick so business users can ask questions in plain language, with no re-sharing.
Introduction
Many organizations keep data in separate AWS accounts: producer teams own the data, a central team owns governance, and analytics teams consume it. The usual way to share across those accounts is to copy data or hand out permissions manually, which leaves stale duplicates and no clear audit trail.
Amazon SageMaker Unified Studio and Amazon SageMaker Catalog give you a governed alternative. Producers publish tables to a shared catalog, consumers discover them and request access, and producers approve with optional column or row filters. AWS Lake Formation enforces the result, and consumers query the data in place.
This post walks through that setup for a common starting point: tables that already exist in the AWS Glue Data Catalog over Amazon S3, crawled or created outside Unified Studio. It then adds Amazon Quick on top and answers a question that comes up often: does data shared through SageMaker Catalog have to be re-shared with Quick? It doesn't. Quick reads through the same governed Athena path as the Query Editor.
That last step matters for people who don't write SQL. Once the governed data is in Quick, business users can explore it by asking questions in plain language, such as "show total sales by month", and they still see only the data their project was approved for.
Solution overview

Figure 1: Three-account architecture. Data stays in the producer account; the governance hub hosts the domain, catalog and Amazon Quick; the consumer queries in place.
Account | Role |
|---|---|
Account A (producer) | Owns the data: S3 buckets and Glue tables |
Account B (governance hub) | Hosts the Unified Studio domain, the catalog and Amazon Quick. Can also hold its own data. |
Account C (consumer) | Discovers, subscribes and queries in place |
All three accounts must be in the same Region. Cross-Region sharing of Glue Data Catalog assets isn't supported .
Key concepts
Concept | What it is |
|---|---|
Domain | Top-level container: users, projects, catalog. Lives in the governance account. |
Blueprint | CloudFormation-backed capability template. Must be enabled per account. |
Project profile | Defines which account a project deploys into and which blueprints it gets. |
Project | Has its own IAM role, Glue database, Athena workgroup and members. The unit of access control. |
Asset | Table metadata imported by a data source and published to the catalog. |
Two points shape the rest of the setup:
- The project role is the real principal. Lake Formation grants go to the project role, not to users. Users get access by being project members.
- The governance account is not in the request path. Subscription requests go from the consumer project to the producer project. The governance account hosts the platform; it doesn't approve requests.
Prerequisites
- Three AWS accounts in the same Region
- Account A: tables in the Glue Data Catalog, backed by S3
- Account B: an IAM Identity Center-based Unified Studio domain. IAM-based domains don't support account associations or the QuickSight blueprint.
- Two Identity Center users, one for the producer and one for the consumer. If the same user is in both projects, subscriptions auto-approve and you never see the approval workflow.
- If the domain uses manual user assignment, add both users to the domain before adding them to projects. Otherwise adding a project member fails with
User profile '…' not found for domain ….
- A Lake Formation administrator in each account that owns data, to run the Lake Formation steps
- Account C: an Athena query result location
- In the account that will host Amazon Quick: a Tooling VPC configuration with exactly one subnet per Availability Zone, across at least two AZs. With two subnets in the same AZ, Tooling and Lakehouse deploy fine, but the QuickSight environment later fails with
Each subnet must belong to a different availability zone.
Note: Cross-account sharing of assets in a federated Glue catalog is not supported . Standard Glue tables backed by S3 work.
--
Part 1: Build the governed lakehouse
Step 1: Associate accounts and enable blueprints
- In Account B, open the SageMaker console → Domains → your domain → Account associations → Request association. Add the Account A and Account C IDs. If the accounts aren't in the same AWS Organization, choose an external AWS RAM share.
- In Account A and Account C, open the SageMaker console → Associated domains and accept the request.
- In all three accounts, enable these blueprints:
- LakeHouseDatabase with default settings. In the CLI and API, this blueprint is named
DataLake.
- Tooling, with your VPC and subnets.
Check that each association shows
Accepted and both blueprints show Enabled in every account. Associating an account also creates an admin-project-<account-id> project in the domain; that's expected.Step 2: Create project profiles (Account B)
Create three project profiles from the All capabilities template:
Profile | Target account |
|---|---|
producer-profile | A |
platform-profile | B |
consumer-profile | C |
The account ID on the profile is what makes this work across accounts. A project created from
producer-profile provisions its role and resources into Account A, so it can see Account A's Glue databases.Step 3: Create projects
Create the projects from the Unified Studio portal:
Project | Profile | glueDbName |
|---|---|---|
producer | producer-profile | New name, e.g. producer_project_db |
platform | platform-profile | New name, e.g. platform_db |
consumer | consumer-profile | New name, e.g. consumer_db |
Each project creates its own Glue database, so
glueDbName must be a name that doesn't exist yet in the target account. Don't enter your existing database here; if you do, the Lakehouse Database environment fails with Glue database with name … already exists . You bring existing tables in with a data source in step 5.Add your producer user to
producer and platform , and your consumer user to consumer . Copy each project role ARN from Project details.Wait until every environment in each project is
Active . The project itself can report Active even when one of its environments failed, so check the environments:aws datazone list-environments \ --domain-identifier <domain-id> \ --project-identifier <project-id> \ --region <region> \ --query 'items[].[name,status]' --output textTooling and Lakehouse Database take a few minutes each.
Step 4: Set up Lake Formation in Account A
Run these steps as a Lake Formation administrator in Account A. Without that, grants with grant option fail with
AccessDeniedException: Resource does not exist or requester is not authorized… .Register the S3 location
SageMaker Unified Studio can only manage access to tables whose S3 location is registered in Lake Formation . In the Lake Formation console, choose Data lake locations → Register location, or use the CLI:
aws lakeformation register-resource \ --resource-arn arn:aws:s3:::<data-bucket>/<prefix> \ --use-service-linked-role \ --region <region>This uses the
AWSServiceRoleForLakeFormationDataAccess service-linked role.Grant the producer project role, with grant option
The minimum grants to publish and share are:
Level | Permissions (all with grant option) |
|---|---|
Database | DESCRIBE |
Table (or all tables) | DESCRIBE, SELECT |
If the producer also manages tables from the project, add these on top (grant option not required):
Level | Permissions |
|---|---|
Catalog | Create catalog, Create database, Alter, Drop |
Database | Create table, Alter, Drop |
Table | Insert, Delete, Alter, Drop |
When the producer approves a subscription, SageMaker Unified Studio issues the consumer's Lake Formation grant on the authority of the producer project role. A role can't pass on a permission it doesn't hold as grantable, so the grant option is required. Without it, subscriptions are approved but never fulfilled. Once you add the grant option, waiting subscriptions are fulfilled automatically.
The minimum grants from the CLI:
# Database: DESCRIBE with grant optionaws lakeformation grant-permissions \ --principal DataLakePrincipalIdentifier=<producer-project-role-arn> \ --resource '{"Database":{"Name":"<db>"}}' \ --permissions DESCRIBE \ --permissions-with-grant-option DESCRIBE \ --region <region>
# Tables: DESCRIBE and SELECT with grant optionaws lakeformation grant-permissions \ --principal DataLakePrincipalIdentifier=<producer-project-role-arn> \ --resource '{"Table":{"DatabaseName":"<db>","TableWildcard":{}}}' \ --permissions DESCRIBE SELECT \ --permissions-with-grant-option DESCRIBE SELECT \ --region <region>Note onIAMAllowedPrincipals: sharing works even if your account still grantsIAMAllowedPrincipalson new databases and tables (the Lake Formation default). While that grant exists, IAM principals in the producer account with Glue and S3 permissions can read the full table outside Lake Formation, so column filters only constrain subscribed consumers. Decide whether to revoke it or use hybrid mode , and check existing IAM-only workloads before changing anything.
Step 5: Import and publish tables
Create the data source
In the
producer project, choose Manage (at the bottom of the left navigation) → Catalog management → Data sources → Create:Setting | Value |
|---|---|
Type | AWS Glue (Lakehouse) |
Connection | project.default_lakehouse |
Catalog | Select AwsDataCatalog from the dropdown |
Database | Your existing database, from the dropdown |
Tables | * |
Auto-publish | Off, so you can add filters first |
Run | On demand |
Always pick the catalog from the dropdown. A hand-typed
AwsDataCatalog fails at creation with VALIDATION_EXCEPTION: Not able to access Glue Catalog <account-id>:AwsDataCatalog… , which points at permissions rather than the catalog name. Behind the dropdown, the console stores the account ID as the catalog name, so use "catalogName": "<account-id>" if you create data sources with the API.Run the data source.
Note: Before you publish, open the asset and check Asset details → Subscription eligibility. If it shows Unmanaged asset, subscriptions to it will be approved but never fulfilled. Fix the S3 registration or the grant option from step 4, then re-run the data source.
Add asset filters
Open the asset → Asset filter tab → Create asset filter, and choose type Column or Row. The approver selects filters when approving a subscription , and SageMaker Unified Studio turns them into Lake Formation data cell filters. One published asset can serve several consumers with different column sets, without publishing the table twice.
Partition columns can't be hidden with a column filter; they're always returned.
Publish
Publish the assets to the catalog.
Repeat steps 4 and 5 for Account B's own tables in the
platform project: register the location in Account B, grant the platform project role, create the data source, and publish.Step 6: Subscribe, approve and query
Subscribe (consumer user)
In the
consumer project, choose Discover, search for the asset, and choose Subscribe. Enter a reason and choose Submit request. The subscribing project is the one selected at the top left of the portal. The asset then shows Subscription requested.Approve (producer user)
In the
producer project, choose Manage → Catalog management → Subscriptions → Requests, and open the request.In Review subscription request, choose Approve. Under Approval access, choose Full access, or Filtered access and pick an asset filter. Data permission is always Read-only. Choose Save.

The grant takes a minute or two to complete. To check it from the CLI, run
aws datazone list-subscription-grants --environment-id <consumer-lakehouse-environment-id> and look for COMPLETED / GRANTED .Query (consumer user)
In the
consumer project, open Query Editor under Data analytics and run:SELECT c.segment, DATE_TRUNC('month', t.transaction_date) AS month, SUM(t.amount) AS revenueFROM consumer_db.sales_transactions t -- published from Account AJOIN consumer_db.customers c -- published from Account B ON t.customer_id = c.customer_idGROUP BY 1, 2ORDER BY 2, 1;Subscribed tables appear in the consumer project's own database. Qualify the table names as shown, or pick that database in the editor's Catalog / Database selector. Otherwise the editor uses
default and returns TABLE_NOT_FOUND .This query joins data from two accounts without copying anything. If you approved with Filtered access,
SELECT * on that table returns only the columns the filter allows.
Part 2: Add Amazon Quick
The BI capability is now part of Amazon Quick, but the blueprint, environment and APIs still use the name QuickSight, so you'll see both names in the console.
Quick doesn't need its own copy of the data or its own permissions. It reads through the same governed Athena path:
SageMaker Catalog Athena Amazon QuickPublished asset ──────► Subscribed table ───► Dataset (project.athena-datasource)LF column filters ──────► Enforced at query ──► Same enforcementProject membership ─────► Workgroup access ───► Quick folder access (synced)Step 1: Set up the Quick account
- The Quick account uses IAM Identity Center, with the same instance as the domain.
- The Quick account is in the same AWS account where you enable the QuickSight blueprint. That doesn't have to be the domain account; this post uses Account B.
Use Enterprise edition for the generative BI features. If an existing QuickSight account uses QuickSight-managed users or IAM federation, you can't switch it to Identity Center in place.
Step 2: Enable the QuickSight blueprint
- Choose Domain → Blueprints → QuickSight → Enable. Provide the provisioning role, the VPC manager role (
AmazonSageMakerQuickSightVPC) and the authorized domain units.
- Add the blueprint to a project profile that targets Account B, such as
platform-profile:
- Mode: On demand
- Deployment order: after LakeHouseDatabase
The QuickSight environment takes its networking from the Tooling environment, so keep both in the account that hosts Quick.
Step 3: Create the BI project and deploy the environment
Create a project from that profile, with a new
glueDbName such as bi_db . Tooling and Lakehouse Database deploy right away. QuickSight waits because it's on demand.Deploy the QuickSight environment from the CLI:
# 1. Find the QuickSight environment configuration ID# (the name is whatever you called the blueprint deployment settings)aws datazone get-project-profile \ --domain-identifier <domain-id> \ --identifier <profile-id> \ --region <region> \ --query 'environmentConfigurations[?name==`QuickSight`].id'
# 2. Create the environmentaws datazone create-environment \ --domain-identifier <domain-id> \ --project-identifier <project-id> \ --environment-configuration-id <quicksight-config-id> \ --name "QuickSight" \ --region <region>
# 3. Poll until ACTIVE (a few minutes)aws datazone get-environment \ --domain-identifier <domain-id> \ --identifier <environment-id> \ --region <region> \ --query '{Status:status}'Shortly after the environment becomes
ACTIVE , Quick contains:- A restricted folder
SageMaker-<project-name>
- An Athena data source
project.athena-datasource
- Permission sync between project membership and folder access
To open Quick, go to the project Overview, choose the ⋮ menu next to the member avatars, and choose Open Amazon Quick. Quick opens in the project's restricted folder.
Step 4: Subscribe the BI project and build a dataset
The BI project needs its own subscription to each asset. A subscription held by the consumer project in Account C doesn't carry over, so until the BI project subscribes, its database has no tables in Quick.
Subscribe the BI project the same way as in Part 1, step 6, and wait for the grant to complete. If the Choose your table dialog was already open, close it and open it again; it doesn't refresh.
Then, in Quick, open
project.athena-datasource → Create dataset → AwsDataCatalog → the project database. Only the tables the BI project has subscribed to are listed. Select the table, choose Select, then choose Directly query your data.If the BI project's subscription was approved with a column filter, the filtered columns don't appear in the Quick dataset, the same as in the Query Editor:

Dashboards built in the project folder are added to the project as assets , and you can publish them to the catalog.
Step 5: Ask questions in natural language
With the dataset in place, business users don't need SQL or an analysis to get answers. They can ask questions in a Quick space:
- In Quick, choose Spaces and create a space, for example
sales.
- Choose Add and add the dataset you created in step 4. Wait until its status shows Ready.
- Ask a question in the space's chat, for example "What is the total sales amount by month?"
Quick queries the dataset and answers with a table, citing the dataset it used:

Follow-up questions build on the conversation. Asking "Show me a chart" turns the same answer into a chart:

Analysis authors can do the same inside an analysis: choose Build in the Visuals pane and describe the visual, for example "Show total sales amount by month as a line chart". Quick generates the visual from the prompt .
Natural language doesn't open a way around governance. Every answer comes from the same dataset, which reads through Athena with the BI project's Lake Formation grants. Columns excluded by the asset filter aren't in the dataset, so no prompt can return them.
How the permissions fit together
Identity Center user └─ member of ─► Project ─ has ─► Project IAM role └─ holds grantable LF grants (producer account) └─ approval issues narrower LF grant (+ asset filter) └─ consumer project Glue DB ├─ Query Editor ─┐ └─ Quick dataset ┴─► Athena → Lake Formation- Membership is the access grant. Designing projects is designing access. If two groups need different data, they need different projects.
- Narrowing happens at approval. The producer role holds grantable permissions, and each approval issues a narrower grant for one consumer, for example with a column filter.
- Athena is the single data path. That's why Quick needs no re-sharing.
- Nothing is enforced at the account boundary. Account associations allow discovery and provisioning but grant no data access.
The Unified Studio console changes often, so menu names may differ slightly from this post. The concepts and API calls stay the same.
Clean up
To avoid ongoing charges, delete the resources in this order:
- Quick datasets, analyses and dashboards
- Subscriptions, data sources and projects
- Project profiles and blueprints
- Account associations
- Lake Formation grants and data lake locations in each data account
- The domain, if you created it for this walkthrough
Conclusion
This post showed how to put governed, cross-account sharing on top of an existing Glue Data Catalog without moving data. Producers keep their tables where they are and publish them through SageMaker Catalog. Consumers discover and request access, producers approve with optional column or row filters, and Lake Formation enforces the result for both the Query Editor and Amazon Quick. Because Quick reads through the same Athena and Lake Formation path, you add a BI layer without a second set of permissions to manage. And because Quick understands natural language, the people closest to the business questions can answer them themselves, within the access their project was granted.
To go further, add business metadata and glossary terms so consumers can find data by business meaning, and plan how subscription grants will coexist with any LF-Tag policies you already use. SageMaker Unified Studio doesn't support managing access to Glue assets with LF-Tags , so subscription grants are on named resources.
References
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article