Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when adding notebook lifecycle configuration #11

Open
sungeuns opened this issue Dec 1, 2022 · 2 comments
Open

Error when adding notebook lifecycle configuration #11

sungeuns opened this issue Dec 1, 2022 · 2 comments

Comments

@sungeuns
Copy link

sungeuns commented Dec 1, 2022

Hi, Thanks for the great script!

When I tried to add lifecycle configuration on AWS CLI, error below is happened:

XXX:~/environment/amazon-sagemaker-codeserver/install-scripts/notebook-instances $ aws sagemaker create-notebook-instance-lifecycle-config \
>     --notebook-instance-lifecycle-config-name install-codeserver \
>     --on-start Content=$((cat setup-codeserver.sh || echo "")| base64) \
>     --on-create Content=$((cat install-codeserver.sh || echo "")| base64) 

Error parsing parameter '--on-create': Expected: '=', received: 'EOF' for input:
cyBSZXNlcnZlZC4KIyBTUERYLUxpY2Vuc2UtSWRlbnRpZmllcjogTUlULTAKCiMhL2Jpbi9iYXNo

There is EOF in the middle of script, so I think quotation is needed when adding lifecycle configuration with AWS command:

aws sagemaker create-notebook-instance-lifecycle-config \
    --notebook-instance-lifecycle-config-name install-codeserver \
    --on-start Content="$((cat setup-codeserver.sh || echo "")| base64)" \
    --on-create Content="$((cat install-codeserver.sh || echo "")| base64)" 

Thanks,

@shimdx
Copy link

shimdx commented Dec 3, 2022

I am having same error when I call "aws sagemaker create-notebook-instance-lifecycle-config...".
Instead of doing this, I made a lifecycle config using AWS web console putting scripts in each sh files. Then It runs as expected. I think this would be a workaround for now.

@hwaxxer
Copy link

hwaxxer commented Apr 1, 2023

Same, basic installation scripts not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants