-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
System Information
- Framework (e.g. TensorFlow) / Algorithm (e.g. KMeans): (n/a)
- Framework Version: (n/a)
- Python Version: 2.7.9
- CPU or GPU: (n/a)
- Python SDK Version: 1.5.3
- Are you using a custom image: (n/a)
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:
botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the GetRole operation: User: arn:aws:sts::<withheld>:assumed-role/sagemaker-user-role/
botocore-session-1531238236 is not authorized to perform: iam:GetRole on resource: role sagemaker-user-role