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 réponse
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
EXPERT
répondu il y a 9 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions