Roles That Services Assume
Some Bedrock and SageMaker AI jobs run on your behalf and need their own permissions. A model customization job, for example, has to read your training and validation files in Amazon S3 and write its results back. You give it a service role: an IAM role that trusts the Bedrock service to assume it, with permissions limited to the right buckets. SageMaker AI works the same way through its execution role. Using roles means no long-term access keys are pasted into job settings or code, and the role's permissions can be kept narrow, for example to one bucket or one folder.