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
EXPERTE
gefragt vor 5 Jahren1197 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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

beantwortet vor 5 Jahren
profile picture
EXPERTE
überprüft vor 24 Tagen
  • 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?

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen