Run different notebooks present in same Sagemaker notebook instance with lifecycle configurations based on different lambda triggers
0
I have a sagemaker notebook instance having two jupyter notebook ipynb files.
When I had one jupyter notebook, I was able to run it automatically with one lambda function trigger and lifecycle configuration.
Now I have two jupyter notebooks and corresponding two lambda function triggers. How can I run them based on the trigger by changing the lifecycle configuration script.
To clarify, are you looking to schedule notebook executions automatically on starting the notebook instance?
Can you share your current solution (lambda handler, lcc script) so I can get a better understanding?
To clarify, are you looking to schedule notebook executions automatically on starting the notebook instance? Can you share your current solution (lambda handler, lcc script) so I can get a better understanding?
Assuming you're using an LCC such as this - https://github.com/aws-samples/amazon-sagemaker-notebook-instance-lifecycle-config-samples/blob/master/scripts/execute-notebook-on-startup/on-start.sh
You might have to have two LCC scripts - one for each notebook and use the Lambda function to attach the right LCC script based on the trigger.