A collection of sample scripts customizing SageMaker Studio Applications using Lifecycle Configuration
Lifecycle Configurations provide a mechanism to customize the Jupyter Server and Kernel Application instances via shell scripts that are executed during the lifecycle of the application.
- git-clone-repo - Checks out a Git repository under the user's home folder automatedly when the Jupter server starts
- install-autoshutdown-server-extension (Recommended) - Installs only the server part of idle-kernel shutdown extension. No external dependencies to install, recommended to use in VPCOnly mode with restricted Internet connectivity. Idle timelimit has to be set using Life Cycle Configuration script.
- install-autoshutdown-extension - Installs the auto idle-kernel shutdown extension on the Jupyter Server. This install allows users to set idle timeout limit using the UI.
- install-pip-package-on-kernel - Installs a python package with pip on a Studio Kernel
- set-git-config - This script sets the username and email address in Git config.
- set-git-credentials - Adds the user's git credentials to Secret Manager and configures git to fetch the credentials from there when needed
- set-proxy-settings - Configures HTTP and HTTPS proxy settings on jupter server and on the Studio kernels.
For best practicies, please check the DEVELOPMENT.md.