This script installs the auto-shutdown Lifecycle Configuration to the SageMaker Domain, such that all users get the extension enabled by default.
The same installation can be made following the blog post Customize Amazon SageMaker Studio using Lifecycle Configurations, but I needed a "1-click" installation to run faster in multiple environments.
- Bash (or other compatible Unix shell)
- AWS CLI
- Programmatic access (access key ID, secret access key)
- Permissions to:
- Create SageMaker Studio Lifecycle Config
- List SageMaker domains
- Update SageMaker domain
-
Download the
install_autoshutdown_sm_domain.sh
shell script -
Execute
./install_autoshutdown_sm_domain.sh