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.
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.