Problem Statement
What is the best baseline for cloud IAM policies?
Explanation
Keep blast radius small. Scope each role to what it must do, add conditions like tags or source VPC, and favor temporary credentials via roles.
Code Solution
SolutionRead Only
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": ["s3:GetObject"],
"Resource": "arn:aws:s3:::corp-bucket/reports/*",
"Condition": { "StringEquals": { "aws:PrincipalTag/team": "analytics" } }
}]
}