- Guided, step-by-step console workflow for role creation.
- Prebuilt templates with sensible defaults for training, inference, and pipeline roles.
- Direct integration with key AWS services such as SageMaker, S3, ECR, and CloudWatch.

Typical workflow
- Navigate to the Role Manager console.
- Select a template that matches your use case (training, inference, or pipeline).
- Create an IAM role from the template—SageMaker Role Manager populates the role with appropriate permissions.

- Create a dedicated IAM role using Role Manager.
- Attach that role to the SageMaker job or pipeline.
- The role grants runtime permissions for accessing S3, ECR, CloudWatch, KMS (when needed), and other services required by the workload.

Auditing and monitoring
Auditing role creation and role usage is essential for security and compliance. Capture Role Manager activities and role usage with AWS CloudTrail to retain an immutable event history and enable alerting and analysis. CloudTrail captures actions and role usage as events, records them as logs, and allows you to analyze those logs to produce audit reports and alerts.

Use the provided templates as a starting point, then tighten permissions to match only the resources and actions required by your workload.
Avoid broad, permissive roles. Always apply the principle of least privilege and prefer service-attached roles over long-lived user credentials.
- Do not use overly broad admin roles; restrict to what is necessary.
- Assign roles to services (SageMaker jobs, EC2 instance profiles, Lambda functions) instead of attaching long-lived user credentials.
- Monitor role usage to detect and remove unnecessary or stale privileges.

Templates and permissions (quick reference)
Best practices
- Start from Role Manager templates and scope down permissions to specific S3 buckets, ECR repositories, and KMS keys.
- Rotate and audit credentials—prefer temporary, service-based roles for runtime access.
- Use CloudTrail + AWS Config rules to alert on unexpected role changes or privileged policy attachments.
- Tag roles and policies to map them to projects or teams for easier lifecycle management.
- Use SageMaker Role Manager to simplify and standardize IAM configuration for SageMaker workloads.
- Choose and refine templates for training, inference, and pipeline tasks; enforce least privilege.
- Audit all role activities with CloudTrail to ensure monitoring and accountability.
Links and references
- Amazon SageMaker
- SageMaker Developer Guide — Role Manager
- AWS Identity and Access Management (IAM)
- AWS CloudTrail
- AWS Key Management Service (KMS)