A policy has an Allow for `s3:*` but a user still gets AccessDenied on `PutObject`. List the places a deny can hide.
IntermediateScenarioIAM, Organizations and Multi-Account
Answer
Situation read → Evaluation is explicit deny first, so I hunt for any deny across the layers.
What I'd do →
- SCP in Organizations
- Permissions boundary on the role or user
- Session policy passed during assume-role
- Bucket policy with
Denyconditions such asaws:SecureTransportor required encryption - VPC endpoint policy
- Use the IAM policy simulator or
aws iam simulate-principal-policyand CloudTrailerrorMessage, which often names the deny type
Why → AWS error messages now say "explicit deny in a service control policy" or similar, which pinpoints the layer.
Interview tip → Recite the evaluation order: explicit deny, SCP, boundary, session, identity or resource allow.
More on IAM, Organizations and Multi-Account
A developer needs read-only access to one S3 bucket from their laptop. How do you grant it without creating long-lived access keys?BeginnerAn EC2 application needs to write to DynamoDB. Where do the credentials come from?BeginnerSecurity wants to know who deleted a production S3 bucket yesterday. How do you find out?BeginnerYou must stop anyone in a member account from disabling CloudTrail, even account admins. What do you use?BeginnerA cross-account role assumption fails with AccessDenied even though the target role trusts the source account. What do you check?IntermediateDesign access for a CI pipeline in GitHub Actions to deploy to AWS without storing AWS keys in GitHub.Intermediate