Create a lifecycle configuration script
The following procedure shows how to create a lifecycle configuration script for use with an Amazon SageMaker notebook instance. For more information about creating a notebook instance, see Create an Amazon SageMaker notebook instance.
To create a lifecycle configuration
-
Open the SageMaker AI console at https://console.aws.amazon.com/sagemaker/
. -
On the left navigation pane, choose Admin configurations.
-
Under Admin configurations, choose Lifecycle configurations.
-
From the Lifecycle configurations page, choose the Notebook Instance tab.
-
Choose Create configuration.
-
For Name, type a name using alphanumeric characters and "-", but no spaces. The name can have a maximum of 63 characters.
-
(Optional) To create a script that runs when you create the notebook and every time you start it, choose Start notebook.
-
In the Start notebook editor, type the script.
-
(Optional) To create a script that runs only once, when you create the notebook, choose Create notebook.
-
In the Create notebook editor, type the script configure networking.
-
Choose Create configuration.