Where do you launch the terminal from? If you use the launcher window, it would start on the t2.medium as you are experiencing.
However, if you use the launch terminal button in the toolbar that is displayed at the top of your notebook, it will launch the image terminal on the new instance the notebook's kernel is running on (your m5.8xlarge instance).
In SageMaker Studio, how to decide on which instance to open a terminal?Accepted Answer
CPU + memory usage missing from SM Studio notebook toolbarAccepted Answerasked 4 months ago
Custom packages in Sagemaker studioAccepted Answerasked 2 years ago
How to tune SageMaker Studio Notebooks hardware config?Accepted AnswerEXPERTasked 3 years ago
Is there a solution for multi-user Notebook on SageMaker?Accepted Answer
Deleting a studio..asked a year ago
Jupyter Notebookasked a month ago
Sagemaker Jupyter Studio Notebook public sharingAccepted Answerasked 3 months ago
Notebook Instance Types for SageMaker StudioAccepted AnswerEXPERTasked 2 years ago
Determining the "right" instance type running Jupyter notebook in Sagemaker when reading/writing a huge parquet file?asked 3 months ago