Skip to content
Kitbay

hf-cloud-sagemaker-iam-preflight

Apache-2.0Updated on Nov 11, 202611,334GitHub starsIncludes scripts

A Hugging Face skill that makes sure a working SageMaker execution role exists before an agent creates endpoints, models or training jobs.

What the skill teaches

A Hugging Face skill that makes sure a working SageMaker execution role exists before an agent creates endpoints, models or training jobs. It sets an order: validate the role the user supplied, otherwise look for a usable existing role, and only create a new one when nothing fits, which avoids failures for single sign-on users who cannot create roles. It lists the minimum permissions a role needs and gives plain AWS CLI fallbacks. Bundled Python helpers check and create roles by calling the AWS CLI from the shell where it already works, with a warning about Windows Bash shims.

Capabilities

  • Validate a SageMaker execution role
  • Find a usable existing IAM role
  • Create a role only when none fits
  • List minimum role permissions