When we set a file in s3 bucket as public, we can directly download it from its URL. But, if I set a bucket or a sub folder in bucket to public, I am getting below error.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>FD92231A86E4F761</RequestId>
<HostId>KcoKQ1mibo+NO9o46u9qDTp6ezTmUHuzR4bdWo6gZTJct5aBUxejjJ9Aqy72bCafEBBffcVeONI=</HostId>
</Error>
Any suggestions on how to access a complete bucket using public url?