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
回答済み 2ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ