1 Answers
Policy keys are case sensitive; it needs to be "Version", not "version"
Sign Up Free or Log In to participate!
{
"version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::tajsecuritybucket1/*"
},
{
"Sid": "PublicReadGetObject",
"Effect": "Deny",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::tajsecuritybucket1/*",
"Condition":{
"Bool":{
"aws:SecureTransport": false
}
}
}
]
}
Policy keys are case sensitive; it needs to be "Version", not "version"
Psst…this one if you’ve been moved to ACG!