aws / amazon-sagemaker-examples

Example 📓 Jupyter notebooks that demonstrate how to build, train, and deploy machine learning models using 🧠 Amazon SageMaker.
https://sagemaker-examples.readthedocs.io
Apache License 2.0
10.04k stars 6.75k forks source link

[Content Improvement] Insufficient Lake Formation permission when creating Feature Store #2079

Open davidshtian opened 3 years ago

davidshtian commented 3 years ago

Link to the notebook https://github.com/aws/amazon-sagemaker-examples/blob/master/end_to_end/1-data-prep-e2e.ipynb

What aspects of the notebook can be improved? For AWS users who have already enabled Lake Formation as new data lake permission model, when creating Feature Store, it will throw "Access denied" error shown as below:

'FeatureGroupStatus': 'CreateFailed', 'FailureReason': 'Insufficient Lake Formation permission(s): Required Create Database on Catalog (Service: AWSGlue; Status Code: 400; Error Code: AccessDeniedException; Request ID: 2e3e108b-54f0-49d4-86fb-4a566cf4xxxx; Proxy: null)',

One can reproduce this issue when enable Lake Formation as default permissions for newly created databases and tables, and then run this notebook.

What are your suggestions? Add the SageMaker execution role as Lake Formation as database creator will solve this problem.

aaronmarkham commented 3 years ago

@aarsanjani Can you take a look at this issue?

aarsanjani commented 3 years ago

ack. This notebook has nothing to do with Lake Formation. This is a Feature Store issue. Will investigate with that team.