# 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.

## 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

- [Access control list: meaning and an example](/glossary/access-control-list/)
- [Wildcard permission: meaning and an example](/glossary/wildcard-permission/)
- [Inline policy: meaning and an example](/glossary/inline-policy/)
- [All of them](/glossary/)

## Sources

- https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html (read 16 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://iampolicygenerator.com/glossary/service-principal/

This site is not affiliated with Amazon Web Services. AWS service and product names are used only to describe AWS services.
