mediumStudy question · answer published in IAM interview questions, so no pointscloud-securityiam-policiess3
ListBucket needs the bucket ARN
A role can download files but gets AccessDenied when running aws s3 ls s3://reports-prod/. What is wrong with this policy?
{
"Effect": "Allow",
"Action": ["s3:GetObject", "s3:ListBucket"],
"Resource": "arn:aws:s3:::reports-prod/*"
}Discussion 0
Join free to post in the discussion.
Related questions
- Who patches the VM operating system?Cloud Engineer
- Principle of least privilegeCloud Engineer
- Protecting the root userCloud Engineer
- What HTTPS protectsCloud Engineer
- Shell access without opening port 22Cloud Engineer
- IAM user vs IAM roleCloud Engineer
- Explicit deny always winsCloud Engineer
- Nothing allowed means deniedCloud Engineer