0

How to limit the number of kernels which a single user can run simultaneously in Sagemaker Studio?

I'm looking for something similar to:

"Action": "sagemaker:CreateApp",
        "Resource": "*",
        "Condition": {
            "ForAllValues:StringLike": {
                "sagemaker:InstanceTypes": [
                    "ml.c5.*"
             }
         }

but limiting instance count available for a single studio user.

Michal R.
  • 33
  • 6

1 Answers1

1

Its not possibile through IAM. There is no condition in sagemaker's IAM policies for kernel count. You can check available condition keys for sagemaker here.

You would have to develop a fully custom solution for monitoring user activities in sagemaker, and taking corrective actions based on your own criteria.

Marcin
  • 215,873
  • 14
  • 235
  • 294