Accessing SageMaker Notebooks without accessing the console

0

Is it possible to access SageMaker Notebooks without accessing the console?

Do we have a best practice for that? In the create-presigned-notebook-instance-url command, what is the --session-expiration-duration-in-seconds: is it the validity duration of the URL or the max session duration once the URL has been clicked?

AWS
EXPERT
asked 5 years ago1171 views
1 Answer
1
Accepted Answer

I have experimented with CreatePresignedNotebookInstanceUrl a number of times. It returns an "AuthorizedUrl" string in the form: https://<notebook_instance_name>.notebook.<region>.sagemaker.aws?authToken=<a_very_long_string>

I used the URL in another browser with no AWS console's session cookies (not logged in to the console) and it worked (could access my notebooks).

The parameter SessionExpirationDurationInSeconds is... well, exactly what it says, The number of seconds the presigned url is valid for. The API accepts a range of [1800, 43200] in seconds, which is equivalent to : 30 minutes to 12 hours .

I hope this helps

answered 5 years ago
profile picture
EXPERT
reviewed 9 days ago
  • I cannot open the pre-signed url in a browser that has not logged in to the aws console. Is there any other configuration I need to do?

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