I'm trying to make my entire S3 bucket public, but when I try to add the policy:
{
"Id": "Policy1454540872039",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1454540868094",
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::sneakysnap/*",
"Principal": {
"AWS": [
"985506495298"
]
}
}
]
}
It tells me that my "Resource is invalid", but that is definitely the right arn
and that is definitely the right bucket name. Anyone know what's going on?
question from:
https://stackoverflow.com/questions/35189663/s3-invalid-resource-in-bucket-policy 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…