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 Respuesta
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
EXPERTO
respondido hace 9 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas