Amazon SageMaker · Finder + automated fixer
Stop idle SageMaker notebook instances
StopIdle Sagemaker Notebooks
SageMaker notebook instances that remain idle for extended periods can incur unnecessary costs. CloudFix finds notebook instances without a lifecycle configuration and adds one that stops them when they sit idle.
What happens, in order.
Finder · read-only
Finds the opportunity
Scans your connected accounts with a read-only role. It can see resource metadata and usage; it can’t change anything.
You
Approve in Recommendations
It appears in your Recommendations view with what it would save. Approve the resources you choose. Nothing has changed yet.
Fixer
Runs in your account
The fixer runs as an AWS Systems Manager Automation runbook in your AWS account, and acts only on the resources you approved.
Record
Logs the execution
The Systems Manager execution is logged, so every change can be audited.
Finder role
Read-only. It can see resource metadata and usage. It can’t change anything.
Fixer role
A separate, minimal role that acts only on the resources you approved, through AWS Systems Manager.
Why it costs money
A SageMaker notebook instance is charged for its instance type for as long as it runs, whether or not anyone has Jupyter open.
Stopping it ends that charge but keeps the notebook. The ML storage volume stays, and is still billed, and the instance can be started again later.
What to look at
- Notebook instances with no lifecycle configuration attached and a yearly cost above a minimum. CloudFix doesn’t judge idleness up front; the script it installs does that from Jupyter activity.
- The idle period, 1 hour by default and settable down to 10 minutes.
- What survives a stop. Only files under /home/ec2-user/SageMaker persist; the /tmp directory and any operating system customizations are lost when the instance stops or restarts.
- Lifecycle scripts must finish within 5 minutes, or the notebook instance fails to start.
What the change does
- The fixer attaches a lifecycle configuration that watches Jupyter activity and stops the notebook instance once it has been idle for the set period.
- Stopping doesn’t delete the instance or its saved data, and users start it again when they need it.
Sources: AWS: Amazon SageMaker AI pricing (notebook instances); AWS: Customize a notebook instance with a lifecycle configuration; AWS: Create a notebook instance (storage); CloudFix support: ML stop idle SageMaker notebooks.
See whether this one applies to your account.
A free savings assessment reports which fixers can be applied to your environment. Results typically within 24 hours.