AWS identity policy concepts
Start with a request
An AWS request has a principal, action, resource and context. An IAM role provides permissions through a temporary session; its trust policy determines who may assume it, while its permission policies govern subsequent actions. In a fictional invoice service, the reader role needs only read access to invoice objects. Separate deployment and runtime roles so a compromised application does not inherit administration privileges.
Identity and resource policies
An identity policy describes what its attached identity can do; a resource policy describes access to a resource, including relevant principals. A bucket policy is a resource policy. For ordinary same-account cases a matching allow may come from either policy; an applicable explicit deny wins. Do not treat this as a universal formula: cross-account access and direct grants to role sessions have different evaluation details. Check the actual principal type and service before deciding.
Boundaries and organization guardrails
A permissions boundary limits the permissions identity policies can grant; it does not grant anything itself. A service control policy (SCP) limits available permissions for applicable principals in member accounts, not the management account. An SCP allow is not an IAM permission grant. Also consider session policies, resource control policies and service-specific conditions. Record which policy layers are actually in scope rather than assuming all exports are complete.
Worked classroom decision
For an intentionally restricted same-account toy model, use a matching identity or resource grant, a boundary gate, an SCP gate and an explicit-deny flag. A matching read grant with both gates true and deny false yields allow. If the boundary is false it yields deny. If the SCP is unknown and no known denial exists, mark review. These are pre-resolved booleans, not deployable IAM JSON or an AWS simulator; direct session grants and cross-account requests are excluded.
Practice: justify every outcome
Read identity.json. Apply the lab rule, preserve unknowns and identify the layer responsible for a denial. Sketch principal → request → policy layers → decision. Propose a narrowly scoped permission change only when business need and owner approval exist; include a positive read test and a negative write test. Review the separate AWS knowledge-base track for IAM foundations; cross-link by topic because its published lesson IDs are unavailable.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
AWS identity policy concepts — knowledge check
Evaluate AWS identity, network, audit and remediation decisions.
Which policy controls who can assume an IAM role?
What does a permissions boundary do?
What wins over a matching allow?
Does an SCP allow grant IAM permissions by itself?
Why is the toy model not universal?