Service principal
Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.
A service principal is the identifier of an AWS service, such as ec2.amazonaws.com or bedrock.amazonaws.com, used in the Principal element of a trust policy or resource policy to let that service assume a role or act on a resource. Pair it with aws:SourceArn or aws:SourceAccount to confine the service to your resources.
All terms ยท Open the workbench
An example, sourced
AWS says AWS service principals include information about the resource, account and organization they act on behalf of, and recommends testing aws:SourceArn, aws:SourceAccount, aws:SourceOrgID or aws:SourceOrgPaths wherever a service principal is granted access.
Why it matters here
The workbench reports a service principal in a trust policy with no source condition as a low-severity finding.
Related pages
Sources
- https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html, read 16 Nov 2026
Last reviewed 16 Nov 2026.