Cross-account trust and access review
Workforce and workload identities
IAM Identity Center can connect a workforce identity provider to AWS account assignments. Permission sets describe access that is provisioned into assigned accounts; users obtain temporary role sessions rather than sharing long-lived access keys. Applications instead use workload identities such as an ECS task role or Lambda execution role. Keep humans and automated workloads separate, apply MFA through the approved identity system, and define session durations appropriate to the task. Revoke assignments when people leave or change roles; review outstanding sessions and identity-provider behavior separately.
Cross-account role assumption
Suppose a fictional security account contains an AuditReader role that needs to assume ReportReader in a production account. For this cross-account assumption, the caller needs an identity permission for sts:AssumeRole on the target role, and the target role trust policy must authorize the caller. Applicable organization controls and conditions must also permit the request. After assumption, the temporary session acts as the target role, using its permissions rather than inheriting the caller’s original permissions. Grant only the report-reading actions and resources needed. Review trust separately from permissions; broad trust is not harmless simply because current permissions are narrow.
Review access and prepare emergency recovery
IAM Access Analyzer can identify supported external, internal and unused access, depending on analyzer type and scope. External access findings describe policy-based access beyond a chosen trust zone, not proof someone actually used it. Review intended sharing with the resource owner, investigate findings and analysis errors, and use policy validation or access previews before changes. Maintain a separately approved break-glass procedure with strong authentication, narrowly scoped emergency roles, monitoring, time limits, documented approvals and regular recovery drills. Emergency access is not an excuse to disable normal guardrails.
Offline authorization exercise
Use the synthetic scenario below to predict the result of reading a report and of requesting a cross-account role session. The fixture accepts already evaluated Boolean policy outcomes and compares team labels; it does not parse IAM JSON, evaluate real condition operators, model resource-policy exceptions or call AWS. Change one input at a time: remove the grant, remove trust, add explicit deny or change the resource team. Explain which decision changes and why. For actual access changes use an approved review and real service-specific evaluation.
{ "grant": true, "boundary": true, "session": true, "scp": true, "rcp": true, "explicitDeny": false, "principalTeam": "finance", "resourceTeam": "finance", "callerPermission": true, "targetTrust": true, "assumptionControls": true}Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Cross-account trust and access review — knowledge check
Reason about synthetic multi-account authorization cases.
Which identity is appropriate for a Lambda workload?
What must permit ordinary cross-account AssumeRole?
After assuming a target role, whose permissions govern the session?
What does an external access finding demonstrate?
What belongs in a break-glass design?