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 個月前

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

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

回答問題指南