ladderlore
လမ်းညွှန် တောင်းဆိုရန်
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

သဘောတရား · 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.
Solutions Architect Associate သင်ခန်းစာကို ဖတ်ရန်
Developer
PassRole check
SageMaker AI
Execution role
S3 and ECR
CreateTrainingJobassumes
The caller passes a role and SageMaker assumes it.
  • 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
Each service gets its own role.

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

2 / 2

  • Bedrock service role

    Trusted by
    bedrock.amazonaws.com
    Used for
    Knowledge Bases, customization jobs
Each service gets its own role.

ဘာလဲ

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.