Amazon Linux 2 notebook instances
Important
On June 30, 2026, Amazon Linux 2 reaches end of support for notebook instances. Existing in-service instances may continue to function but will not receive security updates or bug fixes. Starting July 1, 2026, you can no longer create new or restart stopped AL2 notebook instances. JupyterLab 1 and JupyterLab 3 have been deprecated since June 30, 2025. For more information, see JupyterLab version maintenance.
Amazon Linux 2 is vulnerable to CVE-2026-24747, a security issue in PyTorch versions prior to 2.10.0 that cannot be patched on AL2 because of operating system constraints.
As of May 15, 2026, notebook-al2023-v1 is the default platform for all
new notebook instances. We strongly recommend upgrading to AL2023
(notebook-al2023-v1) for continued support. To learn more, see
AL2023 notebook instances.
Starting July 15, 2026, SageMaker AI will attempt to upgrade the following platforms to AL2023:
-
notebook-al2-v1(JupyterLab 1) -
notebook-al2-v2(JupyterLab 3) -
notebook-al2-v3(JupyterLab 4)
Amazon SageMaker notebook instances support Amazon Linux 2 (AL2) operating systems. Amazon Linux 2 is deprecated as of July 1, 2026. We recommend that you use AL2023 for all new notebook instances.
SageMaker AI supports notebook instances based on the following Amazon Linux 2 operating systems.
-
notebook-al2-v1 (deprecated): These notebook instances supported JupyterLab version 1. As of June 30, 2025, you can no longer create new instances with this platform identifier. For information about JupyterLab versions, see JupyterLab versioning.
-
notebook-al2-v2 (deprecated): These notebook instances supported JupyterLab version 3. As of June 30, 2025, you can no longer create new instances with this platform identifier. For information about JupyterLab versions, see JupyterLab versioning.
-
notebook-al2-v3 (deprecating July 1, 2026): These notebook instances support JupyterLab version 4. As of May 15, 2026, AL2023 is the default platform for all new notebook instances. For information about JupyterLab versions, see JupyterLab versioning.
Notebook instances created before 08/18/2021 automatically run on Amazon Linux (AL1). Notebook instances based on AL1 entered a maintenance phase as of 12/01/2022 and are no longer available for new notebook instance creation as of 02/01/2023. To replace AL1, you now have the option to create Amazon SageMaker notebook instances with AL2023. For more information, see AL1 Maintenance Phase Plan.
Supported instance types
Amazon Linux 2 supports instance types listed under Notebook Instances in
Amazon SageMaker Pricingml.p2 instances.
Available kernels
The following table gives information about the available kernels for SageMaker notebook
instances. All of these images are supported on notebook instances based on the
notebook-al2-v1, notebook-al2-v2, and
notebook-al2-v3 operating systems.
SageMaker notebook instance kernels
| Kernel name | Description |
|---|---|
| R | A kernel used to perform data analysis and visualization using R code from a Jupyter notebook. |
| Sparkmagic (PySpark) | A kernel used to do data science with remote Spark clusters from Jupyter notebooks using the Python programming language. This kernel comes with Python 3.10. |
| Sparkmagic (Spark) | A kernel used to do data science with remote Spark clusters from Jupyter notebooks using the Scala programming language. This kernel comes with Python 3.10. |
| Sparkmagic (SparkR) | A kernel used to do data science with remote Spark clusters from Jupyter notebooks using the R programming language. This kernel comes with Python 3.10. |
| conda_python3 | A conda environment that comes pre-installed with popular packages for data science and machine learning. This kernel comes with Python 3.10. |
| conda_pytorch_p310 | A conda environment that comes pre-installed with PyTorch version 2.2.0, as well as popular data science and machine learning packages. This kernel comes with Python 3.10. |
| conda_tensorflow2_p310 | A conda environment that comes pre-installed with TensorFlow version 2.16.0, as well as popular data science and machine learning packages. This kernel comes with Python 3.10. |
AL2 Maintenance Phase Plan
The following table is a timeline for the Amazon Linux 2 end of support on notebook instances.
|
Date |
Description |
|---|---|
|
May 15, 2026 |
The default platform identifier for new notebook instances changes
from |
|
June 30, 2026 |
AL2 reaches end of support. AL2 notebook instances no longer receive security updates or bug fixes. |
|
July 1, 2026 |
AL2 notebook instances can no longer be created or restarted. |
|
July 15, 2026 |
SageMaker AI will attempt to upgrade remaining AL2 instances to AL2023. |
Migrating from Amazon Linux 2 to AL2023
If you have existing notebook instances running on Amazon Linux 2 (notebook-al2-v1,
notebook-al2-v2, or notebook-al2-v3), migrate them to AL2023
before July 1, 2026.
Migration is an in-place platform update. Your EBS volume data (notebooks, datasets,
custom files in /home/ec2-user/SageMaker/) is preserved.
To migrate a notebook instance to AL2023
-
Stop your notebook instance.
-
Call UpdateNotebookInstance with
PlatformIdentifierset tonotebook-al2023-v1. Or, in the SageMaker AI console, edit the notebook instance and change the Platform identifier tonotebook-al2023-v1. -
Start your notebook instance.
-
Verify your lifecycle configuration scripts and custom environments work correctly.
Important differences between Amazon Linux 2 and AL2023
-
Package manager:
yum(Amazon Linux 2) →dnf(AL2023) -
PyTorch version: 2.6.0 (Amazon Linux 2) → 2.10.0 (AL2023)
-
Unsupported instance types:
ml.p2(Amazon Linux 2) →ml.p2,ml.p3,ml.p3dn,ml.inf1,ml.g3(AL2023)
Lifecycle configuration script updates
If your notebook instance uses a lifecycle configuration script, update any
yum commands to use dnf. For example:
# AL2 (old) sudo yum install -y htop # AL2023 (new) sudo dnf install -y htop
For a detailed comparison of Amazon Linux 2 and AL2023, see Comparing AL2 and AL2023 in the Amazon Linux 2023 User Guide.
AL1 Maintenance Phase Plan
The following table is a timeline for when AL1 entered its extended maintenance phase. The AL1 maintenance phase also coincides with the deprecation of Python 2 and Chainer. Notebooks based on AL2 do not have managed Python 2 and Chainer kernels.
|
Date |
Description |
|---|---|
|
08/18/2021 |
Notebook instances based on AL2 are launched. Newly launched notebook instances still default to AL1. AL1 is supported with security patches and updates, but no new features. You can choose between the two operating systems when launching a new notebook instance. |
|
10/31/2022 |
The default platform identifier for SageMaker notebook instances changes from Amazon Linux (al1-v1) to Amazon Linux 2 (al2-v2). You can choose between the two operating systems when launching a new notebook instance. |
|
12/01/2022 |
AL1 is no longer supported with non-critical security patches and
updates. AL1 still receives fixes for critical |
|
02/01/2023 |
AL1 is no longer an available option for new notebook instance
creation. After this date, customers can create notebook instances
with the AL2 platform identifiers. Existing notebooks with an
|
|
03/31/2024 |
AL1 reaches its end of life on notebook instances on March 31, 2024. After this date, AL1 will no longer receive any security updates, bug fixes, or be available for new notebook instance creation.
|
Migrating from AL1
Your existing AL1 notebook instance is not automatically migrated to AL2023. To
upgrade, you must create a new notebook instance with
notebook-al2023-v1, replicate your code and environment, and delete
your old notebook instance.