Hello,
I have a small issue with AWS::S3.
I cannot list the objects in any buckets?
I have setup a policy in the bucket.
{ "Version": "2008-10-17", "Id": "Policy1332206995246", "Statement": [ { "Sid": "Stmt1332206992416", "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "s3:*", "Resource": "arn:aws:s3:::development.blahblahblah.com/*" } ] }
and when I try to receive the bucket list, I get error.
bucket.objects.collect(&:key) AWS::S3::Errors::AccessDenied: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>F93D3C7209378D42</RequestId><HostId>J1EZmhZrvJV/+wd</HostId></Error>
If I try to receive the bucket policy.
bucket.policy AWS::S3::Errors::AccessDenied: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>19A664FCD3B42610</RequestId><HostId>WWbTs1T0yp1Iaenh1HLYkcK6TuDn+/4UkaszJqejRjeE6eCr</HostId></Error>
What can be the reason?
Thanks for help