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
ESPERTO
posta 5 anni fa1197 visualizzazioni
1 Risposta
1
Risposta accettata

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

con risposta 5 anni fa
profile picture
ESPERTO
verificato 23 giorni fa
  • 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?

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande