# hf-cloud-sagemaker-iam-preflight

Ensure a usable SageMaker execution role exists before deploying or training.

- Type: Skill
- Updated: 22 Nov 2026

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

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.

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 set it up

Use it especially when the user has not provided a role ARN explicitly, when scripts are about to call, or when an AccessDenied error mentions an IAM action.

```
iam:CreateRole
```

Never blindly call — always check for existing roles first.

```
iam:CreateRole
```

## More from the Marketplace

- [hf-cloud-sagemaker-production-defaults](https://www.ulpi.io/en/marketplace/skills/hf-cloud-sagemaker-production-defaults-b971ac): Create a SageMaker endpoint (real-time, real-time scale-to-zero, or async) with autoscaling, CloudWatch alarms, and tagging enabled by default.
- [hf-cloud-sagemaker-production-defaults](https://www.ulpi.io/en/marketplace/skills/hf-cloud-sagemaker-production-defaults-d08b0a): Indexed by skills.sh from huggingface/skills.
- [hf-cloud-serving-image-selection](https://www.ulpi.io/en/marketplace/skills/hf-cloud-serving-image-selection-571526): Indexed by skills.sh from huggingface/skills.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
