Skip to content

This project requires more permissions than AmazonSageMakerFullAccess gives it #2027

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

Closed
tedivm opened this issue Dec 10, 2020 · 8 comments
Closed

Comments

@tedivm
Copy link

tedivm commented Dec 10, 2020

Describe the bug

Extremely basic code examples from the website don't work.

To reproduce
Create a new notebook with the following code:

import boto3
import sagemaker
import sagemaker.session

sagemaker_session = sagemaker.session.Session()
role = sagemaker.get_execution_role()

Run it and get this error:

Couldn't call 'get_role' to get Role ARN from role name ROLENAME to get Role path.

Expected behavior

Either the policy should be fixed, or the documentation should be upgraded to tell people what additional permissions they will need.

Screenshots or logs
Screen Shot 2020-12-10 at 3 00 14 PM

System information
A description of your system. Please provide: Sagemaker Studio with no extra installs or changes.

Additional context

This problem has apparently come up before (#291 #305 #575).

We are not using a local setup for this, but are running on Sagemaker directly.

@aaronmarkham
Copy link
Contributor

Did you try granting permission for iam:GetRole?

@tedivm
Copy link
Author

tedivm commented Jan 18, 2021

We added "iam:GetRole", "iam:GetRolePolicy", "sts:GetCallerIdentity" and it worked.

@TEChopra1000
Copy link
Contributor

@tedivm I'll resolve this issue as it appears that you have found a solution. Please reopen if needed.

@tedivm
Copy link
Author

tedivm commented Jan 23, 2021

Well yeah I found a solution, but you should probably fix the underlying problem- either in the documentation or in your policies themselves.

@tedivm
Copy link
Author

tedivm commented Jan 23, 2021

You also don't allow people who aren't members of this project reopen tickets.

@TEChopra1000
Copy link
Contributor

@tedivm good point and your right, my apologies! I didn't realize you weren't allowed to reopen it the ticket. I'll do so now.

@TEChopra1000 TEChopra1000 reopened this Jan 23, 2021
@oonisim
Copy link

oonisim commented Aug 1, 2021

Apparently the issues has not been addressed yet? Please fix if it has not yet because this is an essential step and will waste so much time of all the SageMaker users.

@IvyBazan
Copy link
Contributor

IvyBazan commented Aug 9, 2023

This prerequisite is currently identified in the following documentation:
https://docs.aws.amazon.com/sagemaker/latest/dg/gs-set-up.html

@IvyBazan IvyBazan closed this as completed Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants