aws:PrincipalOrgID
AWS condition keys that compare the organisation ID of the caller (PrincipalOrgID) or of the resource (ResourceOrgID) against a value.
In more detail
Adding aws:PrincipalOrgID to a trust or bucket policy makes sure only identities from your own organisation can use it. On a VPC endpoint policy, aws:ResourceOrgID stops the endpoint reaching buckets in other organisations, which is half of a data perimeter.
Related terms
- condition key — A value AWS attaches to every request, such as whether multi-factor authentication was used, that a policy Condition can test.
- data perimeter — A set of preventive controls that ensure only trusted identities reach trusted resources from expected networks.
- aws:PrincipalOrgPaths — An AWS condition key holding the caller's position in the organisation tree, so a policy can admit only accounts under a chosen organisational unit.
Taught in
- Cross-Account AssumeRole Chains & Temporary STS — Cloud Security & DevSecOps Engineering
- Least Privilege Enforcement & CIEM Architecture — Cloud Security & DevSecOps Engineering