Description of changes:
Added logic for restart command after conda ebs creation to be determined by running platform.
Testing Done
LCC tested on legacy AL1v1 and new AL2v2 notebooks.
Loaded current LCC and observed failure error: /tmp/OnStart_2022-11-17-19-092nflww27: line 33: restart: command not found on AL2 notebook. AL1 was successful.
After inserting fix both notebooks are successful.
[x] Notebook Instance created successfully with the Lifecycle Configuration
[x] Notebook Instance stopped and started successfully
[ ] Documentation in the script around any network access requirements
[ ] Documentation in the script around any IAM permission requirements
[x] CLI commands used to validate functionality on the instance
[ ] New script link and description added to README.md
# Provide your commands here
/your/commands/here
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available: https://issues.amazon.com/issues/MD-10312
Description of changes: Added logic for restart command after conda ebs creation to be determined by running platform.
Testing Done LCC tested on legacy AL1v1 and new AL2v2 notebooks.
Loaded current LCC and observed failure error:
/tmp/OnStart_2022-11-17-19-092nflww27: line 33: restart: command not found
on AL2 notebook. AL1 was successful.After inserting fix both notebooks are successful.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.