Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Create a lifecycle configuration script

Focus mode
Create a lifecycle configuration script - Amazon SageMaker AI

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
  1. Open the SageMaker AI console at https://console.aws.amazon.com/sagemaker/.

  2. On the left navigation pane, choose Admin configurations.

  3. Under Admin configurations, choose Lifecycle configurations.

  4. From the Lifecycle configurations page, choose the Notebook Instance tab.

  5. Choose Create configuration.

  6. For Name, type a name using alphanumeric characters and "-", but no spaces. The name can have a maximum of 63 characters.

  7. (Optional) To create a script that runs when you create the notebook and every time you start it, choose Start notebook.

  8. In the Start notebook editor, type the script.

  9. (Optional) To create a script that runs only once, when you create the notebook, choose Create notebook.

  10. In the Create notebook editor, type the script configure networking.

  11. Choose Create configuration.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.