Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

hf-cloud-sagemaker-iam-preflight

Skill by huggingface

Checks for a usable SageMaker execution role before you deploy or train. It looks for existing roles first and creates one only when the caller has IAM permissions. Built for AWS users who run SageMaker deployments.

  • Score 94
  • 11k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install hf-cloud-sagemaker-iam-preflight

Built from the published package, never by AI.

git clone --depth 1 https://github.com/huggingface/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/hf-cloud-sagemaker-iam-preflight ~/.claude/skills/hf-cloud-sagemaker-iam-preflight

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install hf-cloud-sagemaker-iam-preflight in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill runs a preflight check before creating SageMaker endpoints, models, training jobs, or other resources that need an execution role. If the user gives a role name or ARN, the skill validates that role. If not, it lists roles that match common SageMaker naming patterns and ranks them by last-used date, or by creation date when no usage data exists. It returns the first role whose trust policy allows sagemaker.amazonaws.com.

If no usable role is found, the skill creates one only when the caller has IAM permissions. An SSO principal without IAM write access is told to ask an AWS admin for a role ARN or for the needed permissions. The created role uses a minimum inline policy for S3, ECR, and CloudWatch access instead of AmazonSageMakerFullAccess. It is aimed at developers and teams who deploy or train on SageMaker in AWS.

Written from the project's SKILL.md and checked against it.

What it can do

  • Validate a given roleChecks that a user-provided role name or ARN exists and trusts SageMaker.
  • Discover existing rolesLists roles matching common SageMaker naming and returns the first usable ARN.
  • Create a roleRuns create_role.py to make an execution role with a minimum inline policy when IAM permissions allow.
  • Minimum permissions templateProvides a policy covering S3 model artifact reads, ECR pulls, and CloudWatch logs and metrics.
  • Native AWS CLI fallbackGives manual AWS CLI steps to list roles, check trust policies, and choose a role.

What you need

  • AWS CLI with working credentials, where aws sts get-caller-identity succeeds
  • Python 3 to run the helper scripts
  • IAM permissions to create roles, if no existing role is found

Try asking

  • Find a usable SageMaker execution role in my account before I deploy.
  • Check whether role sagemaker-exec-prod can be used for a training job.
  • Create a SageMaker execution role limited to my model artifact bucket.

Good to know

  • Do not run the helper scripts through WSL, Git Bash, or MSYS on Windows. Run them from PowerShell.
  • The role check verifies existence and trust, not the full permission set. Compare policies with the minimum permissions file.
  • It does not attach AmazonSageMakerFullAccess.
  • Optional features such as async output or data capture need separate permissions.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/hf-cloud-sagemaker-iam-preflight/SKILL.md, skills/hf-cloud-sagemaker-iam-preflight/scripts/check_role.py, skills/hf-cloud-sagemaker-iam-preflight/scripts/create_role.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB
  • references/minimum-permissions.json1 KB
  • references/trust-policy.json197 B
  • scripts/check_role.py7 KB
  • scripts/create_role.py4 KB

Alternatives to hf-cloud-sagemaker-iam-preflight

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

hf-cloud-sagemaker-iam-preflight: common questions

Why check for existing roles before creating one?

The source says trying to create IAM resources from an SSO principal without IAM write permissions is the most common SageMaker deployment failure. The skill looks for usable existing roles first.

Which role does it pick when several exist?

It ranks candidates by last-used date, most recent first. When no usage data is available, it falls back to the newest creation date.

Does it grant full SageMaker access?

No. The source says it installs a minimum inline policy and does not attach AmazonSageMakerFullAccess.

How do I install hf-cloud-sagemaker-iam-preflight?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is hf-cloud-sagemaker-iam-preflight free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is hf-cloud-sagemaker-iam-preflight safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to hf-cloud-sagemaker-iam-preflight?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

hf-cloud-sagemaker-iam-preflight Install

Add to stack

Loading.