SKILL

hf-cloud-sagemaker-iam-preflight

在部署或训练之前确保存在可用的 SageMaker 执行角色。每当即将创建 SageMaker 端点、模型、训练作业或任何需要执行角色的资源时,使用此技能。尤其适用于用户未明确提供角色 ARN、脚本即将调用 `iam:CreateRole`,或 AccessDenied 错误提及某个 IAM 操作时。切勿盲目调用 `iam:CreateRole`——务必先检查现有角色。此技能可防止最常见的 SageMaker 部署失败:试图从没有 IAM 写入权限的 SSO 主体创建 IAM 资源。

机器翻译
查看英文原文

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.

适用对象:云服务、运维与安全。自动收录 · 待核查。

在 Codex 中使用

该组合的专门教程待补充,尚未核实适配。

准备条件

  • 本条仅收录原作者的技能元数据;请阅读完整说明,确认依赖、许可与使用条件。

选择已有说明的 AI 工具,或在页面加载后保存待办及提出教程请求。

查看原作者说明 ↗