Notebook stopped working. Cannot access and shows in notebook instances only intermittently.

0

I was working on a Sagemaker notebook when suddenly it stopped working. I stopped and notebook and started it again, but now I cannot access it, getting the following error:

AccessDeniedException User: arn:aws:sts::755460267215:assumed-role/voclabs/user1672114=9540446637 is not authorized to perform: sagemaker:ListNotebookInstances with an explicit deny in an identity-based policy

Can somebody please help? I should note that I am pretty new to the Sagemaker environment.

asked 2 years ago593 views
1 Answer
0

It looks like the AWS IAM identity that you're logged in to the AWS Console with (going by your error message, the assumed Role voclabs) does not have permission to list SageMaker notebook instances.

If you use multiple Roles (or a combination of your own IAM User and assumed Roles), you may need to switch roles back to the identity you were previously using to access SageMaker.

If you always use the same role, it may be that the attached access policies have been changed (reference list of SageMaker IAM actions and resources here). You'll need sagemaker:ListNotebookInstances to list notebook instances in the console and sagemaker:CreatePresignedNotebookInstanceUrl to open Jupyter/JupyterLab on an instance. From the error message it looks like there's a permission policy attached to your role that's explicitly denying this access. Your administrator should be able to help with this, or can refer to the AWS IAM documentation and IAM service console if you manage the account yourself.

AWS
EXPERT
Alex_T
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions