Repository navigation
Commit 93fea21
fix(examples): correct cross-account access in LF Feature Store notebook (#6048)
* fix: correct cross-account access in LF Feature Store notebook
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).
* fix: make producer Glue-access cell self-contained (import time)
* docs: shorten PutRecord owner comment to match notebook style
* docs: remove comments from producer Glue-access cell
---------
Co-authored-by: hrehard <hrehard@amazon.com>1 parent 6659b11 commit 93fea21
1 file changed
Lines changed: 39 additions & 2 deletions
File tree
- v3-examples/ml-ops-examples/v3-feature-store-examples/lake-formation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
352 | | - | |
| 351 | + | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
515 | 552 | | |
516 | 553 | | |
517 | 554 | | |
| |||
0 commit comments