概念 · SAA-C03 の発展
IAM roles for SageMaker and ML workloads
Two identities are involved: the person or app who calls the API, and the execution role SageMaker assumes. PassRole joins them.
このレッスンはまだ翻訳されていないため、英語で表示しています。
Solutions Architect Associateで学んだこと
- Policies are checked in order: an explicit deny first, then guardrails, then an allow.
- Roles give temporary credentials and need a trust policy that says who may assume them.
- Conditions narrow an allow.
User or app role
- Trusted by
- Your identity provider
- Used for
- Calling SageMaker APIs
SageMaker execution role
- Trusted by
- sagemaker.amazonaws.com
- Used for
- Jobs and endpoints reach S3, ECR, logs
Glue job role
- Trusted by
- glue.amazonaws.com
- Used for
- ETL access to data
Bedrock service role
- Trusted by
- bedrock.amazonaws.com
- Used for
- Knowledge Bases, customization jobs
| Role | Trusted by | Used for |
|---|---|---|
| User or app role | Your identity provider | Calling SageMaker APIs |
| SageMaker execution role | sagemaker.amazonaws.com | Jobs and endpoints reach S3, ECR, logs |
| Glue job role | glue.amazonaws.com | ETL access to data |
| Bedrock service role | bedrock.amazonaws.com | Knowledge Bases, customization jobs |
1 / 2
User or app role
- Trusted by
- Your identity provider
- Used for
- Calling SageMaker APIs
SageMaker execution role
- Trusted by
- sagemaker.amazonaws.com
- Used for
- Jobs and endpoints reach S3, ECR, logs
Glue job role
- Trusted by
- glue.amazonaws.com
- Used for
- ETL access to data
| Role | Trusted by | Used for |
|---|---|---|
| User or app role | Your identity provider | Calling SageMaker APIs |
| SageMaker execution role | sagemaker.amazonaws.com | Jobs and endpoints reach S3, ECR, logs |
| Glue job role | glue.amazonaws.com | ETL access to data |
2 / 2
Bedrock service role
- Trusted by
- bedrock.amazonaws.com
- Used for
- Knowledge Bases, customization jobs
| Role | Trusted by | Used for |
|---|---|---|
| Bedrock service role | bedrock.amazonaws.com | Knowledge Bases, customization jobs |
概要
A user role is the identity of the person or app that calls SageMaker AI, for example to start a training job. An execution role is the role SageMaker AI assumes to do work for you: read training data from S3, write logs, pull images from ECR. Its trust policy names sagemaker.amazonaws.com, so only SageMaker can assume it. Other services follow the same pattern: AWS Glue, SageMaker Pipelines and Amazon Bedrock each have their own service role.
概要
When a caller creates a training job or an endpoint, they pass the execution role to SageMaker, which needs iam:PassRole on that role. Limit it with the role ARN as the resource and the condition iam:PassedToService set to sagemaker.amazonaws.com. Without it, a developer could pass a more powerful role and escalate privileges. The common error is that a user is not authorized to perform iam:PassRole.
概要
In SageMaker Studio, give each persona its own role: data scientist, MLOps engineer, reviewer. The domain has a default execution role, and each user profile or space can have a narrower one. Condition keys enforce settings: sagemaker:VpcSubnets and sagemaker:VpcSecurityGroupIds require your VPC, sagemaker:NetworkIsolation requires isolation, and sagemaker:VolumeKmsKey and sagemaker:OutputKmsKey require encryption. In AWS Organizations, service control policies (SCPs) can keep ML accounts to approved Regions, services or instance types, as a guardrail across accounts.
概要
Status: Amazon SageMaker Role Manager, which generated ready-made roles for ML personas, has been closed to new customers since July 30, 2026. Write the roles with IAM instead.
覚えること
- User role: who calls the API. Execution role: what SageMaker assumes.
- Caller needs iam:PassRole for the execution role, with iam:PassedToService.
- Role Manager: closed to new customers from July 30, 2026.
試験では
- “Not authorized to perform iam:PassRole when creating a training job” points to adding PassRole on the execution role.
- “Only SageMaker may assume this role” points to a trust policy with sagemaker.amazonaws.com.
- “Force all training jobs into the VPC” points to an IAM condition on sagemaker:VpcSubnets.
混同しやすいもの
- Least privilege for ML artifactsGive each role the smallest S3 prefix, key, registry and data permission it needs, and use tags to scale the rules.
- Bedrock access controlIAM decides which models and profiles a caller may invoke. SCPs and a guardrail condition enforce the rules for everyone.
- Troubleshooting ML security issuesWork out whether a failure is a permission or a network path, then read the error and the CloudTrail event.
このタスクの内容 · 4.3
- Scanning code and images in CI/CD
- Least privilege for ML artifacts
- IAM roles for SageMaker and ML workloads
- Bedrock access control
- Credential types for Bedrock
- Auditing, logging and compliance for ML
- Troubleshooting ML security issues
- Isolating ML systems with VPCs
- Encryption and data protection for ML
- AI and ML security risks
Guardrails