-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while trying to access ML Studio from the UI #47
Comments
The root cause I find is that the pivot role does not have enough permission to get the sagemaker user profile. Below are the error messages. |
Thanks, I moved a bit forward with the mentioned fix although it still doesn't work for me. It ends up with the following error when I am trying to access SageMaker generated pre-signed url:
Looks like the role assigned to the SageMaker UserProfile doesn't have a privilege to create an app although I see the following in its policy:
Then it works. Not sure what is the root cause, is it related somehow to the tagging? Shouldn't the tags from the UserProfile be propagated to the application? Looks like the Team tag is not propagated to the SageMaker App but the IAM Role requires the tag hence the action is denied. |
@dosiennik Hello. Thanks for your reply. I dig into it and below is my findings.
{
"Condition": {
"StringEquals": {
"aws:RequestTag/Team": [
"DAAdministrators"
]
}
},
"Action": "sagemaker:Create*",
"Resource": "*",
"Effect": "Allow"
}
So I propose a simple solution that we can remove the condition to make it work for now. Later when we add the creation of sagemaker domain we can orchestrate all these things, such as domain, user profile and app. Reference |
@LEUNGUU thanks a lot for checking and replying. Yeah this will fix it since it works when I did such a change manually for testing. It is actually odd considering UserProfile's tags definition: Especially at the part: 'Tags that you specify for the User Profile are also added to all apps that the User Profile launches.' I checked the tags on the user profile, they are there as expected but seems like they are not propagated to the SageMaker app. Anyway I agree that the proposed fix will solve the issue although not fully sure about the root cause. |
@dlpzx How about the PR? Or you will propose another solution? |
The PR passed all controls and I just merged it. Thank you for contributing :) |
|
Describe the bug
I am getting the following error when try to click on the ML Studio link in the data.all UI:
How to Reproduce
Expected behavior
No response
Your project
No response
Screenshots
No response
OS
mac
Python version
3.8
AWS data.all version
Additional context
No response
The text was updated successfully, but these errors were encountered: