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 Answer
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
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions