jeudi 5 février 2015

Retrieving images from Amazon S3 bucket

I am storing images in an S3 bucket, but I'm not able to display the link to the image. This is the error I get:



<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>8CAF92C03A75648C</RequestId>
<HostId>
ocfqcRiXsJoV0mBom0z+nmV3seEMRpdBMvDddy1sgQrIOq19/UvK6BmurlM8v20zGIvh2ITHjYc=
</HostId>
</Error>


I need to have images display on various domains, but more than I would be able to handle in making CORS rules for each one.



<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>


How can I open this bucket up so that images are publicly able to be displayed?





Aucun commentaire:

Enregistrer un commentaire