QuickDevGuide

Home › AWS

IAM Policies in Practice — AWS

A request is allowed only if some policy allows it and nothing denies it (explicit deny always wins). Policy type Attached to Purpose Identity-based users, groups, roles what this principal can do Resource-based S3 bucket, SQS queue, KMS key, Lambda who can access this resource (incl. other accounts) Trust policy role who may assume the role Permissions boundary user/role maximum permissions it can ever get SCP (Organizations) accounts / OUs guardrails for whole accounts Session policy assumed session further restrict a session Policy anatomy Effect (Allow/Deny), Action (s3:GetObject), Resource (ARN), optional Condition (aws:SourceIp, aws:PrincipalTag/team, s3:prefix, aws:SecureTransport). Start from least privilege: scope actions and resources, then use IAM Access Analyzer to generate…

Key Takeaways