-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Documentation Request] Sagemaker update requires new IAM permissions #291
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
Comments
I am also looking for a list of permissions needed to write a minimal policy. This would be very useful. @zmjjmz any chance you can supply what permissions your team has narrowed it down to so far? It would help give me a jump start past the initial trial and error process. Thanks in advance. |
Hi @zmjjmz , Thanks for the report! I sent a pull request to fix this behavior so that We don't have documentation about the IAM permissions needed for the SDK, but you're right that we should add clear documentation on this. @wendtek I believe (but haven't confirmed) that the Python SDK doesn't need additional permissions beyond those your SageMaker IAM role would need (with this exception), so adding the AmazonSageMakerFullAccess policy to your IAM role or IAM user would be a good start, plus potentially some additional S3 permissions. Thanks again! |
@andremoeller Today I made a role with only AmazonSageMakerFullAccess policy in IAM and put the role onto a notebook instance. However, |
@andremoeller I'm looking for a minimal permission set, so using AmazonSageMakerFullAccess is not an option. We try to keep any user permissions pretty focused on what they're responsible for. I played around a bit yesterday and eventually landed with a much smaller list that a user needs to locally run a notebook with sagemaker, but we're also not using SageMaker's notebook instances or models, just training jobs.
Not using KMS yet either, but we will be. The sagemaker service is actually not supported yet for the KMS condition keys. Running sagemaker 1.7.0 and I haven't run into needed the |
@wendtek it's a bit more complicated than a list of permissions, there's a lot of separate policies that we ended up enabling/creating. AWS Managed:
Custom (separated into various logical policies):
|
Add Sagemaker PyTorch notebooks examples.
Apologies again for the trouble this has caused. Updated the documentation in #575 (though perhaps we'll try and add |
I'm still having this error |
@abiodunjames could you open a new issue in this repository? also, if you could include your code and the error/stacktrace, that would be helpful. thanks! |
System Information
Describe the problem
Our ops team has fairly locked down IAM permissions, and when initially using the Sagemaker SDK I had to trial-and-error which ones I needed. In the most recent version of the Sagemaker SDK PR 268 introduced a new requirement that any role used by the Sagemaker SDK needed
iam:GetRole
granted, which I did not have previously granted for this role. While it wasn't hard to get this role granted, it was a breaking change for us that I would have appreciated a warning for.Is there documentation on what IAM permissions are used by the SDK? If so, I'd just like to request that new permissions end up in the changelog / with a warning so that it's not a surprise.
Minimal repro / logs
I don't have a good way to minimal repro this since of course you'd need our IAM setup, which is not doable :)
Here's the exact error I got though:
The text was updated successfully, but these errors were encountered: