Skip to content

fix(examples): correct cross-account access in LF Feature Store notebook#6048

Open
Hannah14295 wants to merge 6 commits into
aws:masterfrom
Hannah14295:fix/feature-store-lf-cross-account-notebook
Open

fix(examples): correct cross-account access in LF Feature Store notebook#6048
Hannah14295 wants to merge 6 commits into
aws:masterfrom
Hannah14295:fix/feature-store-lf-cross-account-notebook

Conversation

@Hannah14295

Copy link
Copy Markdown
Contributor

Two fixes so v3-feature-store-lake-formation-cross-account.ipynb runs end-to-end across the three accounts:

  1. Online-store PutRecord/GetRecord run as the Feature Group owner (central account), not the producer. SageMaker Feature Store has no cross-account resource policy for the online store, so the producer session gets AccessDenied ('no resource-based policy allows sagemaker:PutRecord'). Cross-account sharing is via the offline store.

  2. Grant the producer account cross-account Glue Data Catalog access before the PyIceberg write. GetTemporaryGlueTableCredentials requires it; without it the write fails with 'Insufficient Glue permissions to access table'. The notebook previously only granted the consumer (and only after this write).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Two fixes so v3-feature-store-lake-formation-cross-account.ipynb runs
end-to-end across the three accounts:

1. Online-store PutRecord/GetRecord run as the Feature Group owner
   (central account), not the producer. SageMaker Feature Store has no
   cross-account resource policy for the online store, so the producer
   session gets AccessDenied ('no resource-based policy allows
   sagemaker:PutRecord'). Cross-account sharing is via the offline store.

2. Grant the producer account cross-account Glue Data Catalog access
   before the PyIceberg write. GetTemporaryGlueTableCredentials requires
   it; without it the write fails with 'Insufficient Glue permissions to
   access table'. The notebook previously only granted the consumer
   (and only after this write).
@Hannah14295
Hannah14295 deployed to manual-approval July 17, 2026 23:42 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants