Limit no. of Sagemaker notebook instances per user

0

Hello team,

I am creating a policy for Sagemaker users, how can I restrict the users to only create limited no.of notebook instances? for example, each user can only create 2 notebook instances.

Regards

1回答
0

Hi,

If you check https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonsagemaker.html#amazonsagemaker-policy-keys, you will see that there is no IAM key allowing you to limit kernel instance creation based on the number of already running instances. So, it is not possible via IAM.

If you check EventBridge, same thing: no event on start of kernels: https://docs.aws.amazon.com/sagemaker/latest/dg/automating-sagemaker-with-eventbridge.html

If your goal is to limit costs, there is one solution published in this blog post: https://aws.amazon.com/blogs/machine-learning/save-costs-by-automatically-shutting-down-idle-resources-within-amazon-sagemaker-studio/. It is based on the auto shutdown extension to shut down apps when they're not in use, and save on costs. See Lifecycle script here: https://github.com/aws-samples/sagemaker-studio-lifecycle-config-examples/tree/main/scripts/install-autoshutdown-server-extension

Best,

Didier

profile pictureAWS
エキスパート
回答済み 9ヶ月前

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

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

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

関連するコンテンツ