A collection of sample scripts customizing SageMaker Studio applications using lifecycle configurations.
Lifecycle Configurations (LCCs) provide a mechanism to customize SageMaker Studio applications via shell scripts that are executed at application bootstrap. For further information on how to use lifecycle configurations with SageMaker Studio applications, please refer to the AWS documentation:
Warning The sample scripts in this repository are designed to work with SageMaker Studio JupyterLab and Code Editor applications. If you are using SageMaker Studio Classic, please refer to https://github.com/aws-samples/sagemaker-studio-lifecycle-config-examples
These scripts will work with both SageMaker JupyterLab and SageMaker Code Editor apps. Note that if you want the script to be available across both apps, you will need to set them as an LCC script for both apps.
/home/sagemaker-user
) to an S3 bucket that's specified on the script, optionally on a schedule. If the user profile is tagged with a SM_EBS_RESTORE_TIMESTAMP
tag, then the script will restore the backup files into the user's home directory, in addition to backups.For best practices, please check DEVELOPMENT.
This project is licensed under the MIT-0 License.
Giuseppe A. Porcelli - Principal, ML Specialist Solutions Architect - Amazon SageMaker
Spencer Ng - Software Development Engineer - Amazon SageMaker
Durga Sury - Senior ML Specialist Solutions Architect - Amazon SageMaker