Tooluck logoTooluck
SKILL.md

hf-cloud-sagemaker-iam-preflight

Agent skill fromhuggingface/skills

Ensure a usable SageMaker execution role exists before deploying or training. Use this skill whenever about to create a SageMaker endpoint, model, training job, or any resource that requires an execution role. Use it especially when the user has not provided a role ARN explicitly, when scripts are about to call `iam:CreateRole`, or when an AccessDenied error mentions an IAM action. Never blindly call `iam:CreateRole` — always check for existing roles first. This skill prevents the most common SageMaker deployment failure: trying to create IAM resources from an SSO principal that has no IAM write permissions.

How to install hf-cloud-sagemaker-iam-preflight

install hf-cloud-sagemaker-iam-preflight
# install the skills pack with the skills CLI
npx skills add huggingface/skills

# or add only this skill to Claude Code: copy the folder

skills/hf-cloud-sagemaker-iam-preflight/

# into

~/.claude/skills/hf-cloud-sagemaker-iam-preflight/ (all projects)

.claude/skills/hf-cloud-sagemaker-iam-preflight/ (one project)

skills/hf-cloud-sagemaker-iam-preflight/SKILL.md

Apache-2.0Full file
1# SageMaker IAM Preflight
2
3Every SageMaker resource needs an **execution role** — the IAM role SageMaker assumes to read model artifacts from S3, pull serving containers from ECR, and write logs. Most deployments fail here because the script tried to create a new role without checking if a usable one already existed, then blew up because the caller is an SSO principal.
4
5This skill encodes the right order: discover, validate, only create if necessary.
6
7## Running the helpers (cross-platform)
8
9The helpers are Python so they run identically on Windows, macOS, and Linux:
10
11```bash
12python3 scripts/check_role.py # macOS / Linux
13python scripts/check_role.py # Windows (PowerShell / cmd)
14```
15
16**Run them from the shell where the AWS CLI already works** — i.e. wherever `aws sts get-caller-identity` succeeds. The script shells out to that same `aws` binary and inherits the shell's profile, region, SSO session, proxy, and credential chain.
17…

Excerpt shown under the repository's Apache-2.0 license.

More skills in skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

cathrynlavery /

diagram-design
66k

Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, and Pi. 45 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.

CCCXCUGH1 skill

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates