List all running Sagemaker or other instances in AWS CLI

0

Recently with another office account, I have seen hidden instances were running and creating unwanted cost in sagemaker, is there any way to check all the running processes/instances using AWS CLI. I got many answers which suggest to go to Billing page, but that is not my objective. I want to immediately find out which instances are running so that I can stop them immediately.

Are there any best practices for this?

3 個答案
1

I see a warning about this here:

When you shutdown the Studio notebook instances, any additional resources, such as SageMaker endpoints, Amazon EMR clusters, and Amazon S3 buckets created from Studio are not deleted. Delete those resources to stop accrual of charges.

Why can't we see these and shut them down from Studio? I was being charged unknowingly until I got a bill.

已回答 1 年前
0

You can either use CLI or AWS Config advance queries. With CLI you can use list-notebook-instances which Returns a list of the SageMaker notebook instances in the requester’s account in an Amazon Web Services Region. Reference : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sagemaker/list-notebook-instances.html

profile pictureAWS
專家
已回答 1 年前
0

Same here, I can't identify where to stop whatever is consuming the hosting of one instance ml.g5.2xlarge hourly. This should be a lot easier to do in AWS, we're talking about wasted resources that are difficult for the user to stop.

sha
已回答 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南