Created
April 15, 2020 08:15
-
-
Save arliber/f580b9f2061286aca3f58b7dfe0859d7 to your computer and use it in GitHub Desktop.
SageMaker Notebook Launcher #article
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PATH=/usr/local/bin:$PATH | |
export AWS_ACCESS_KEY_ID=XXXXXX | |
export AWS_SECRET_ACCESS_KEY=XXXXXX | |
export AWS_DEFAULT_REGION=us-west-2 | |
URL=$(aws sagemaker create-presigned-notebook-instance-url --notebook-instance-name <NODEBOOK_NAME> | grep AuthorizedUrl | head -1 | awk -F:\ \" '{ print $2 }' | sed 's/[",]//g') | |
open $URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment