Sorry if this sounds alittle confusing (I am trying to get through the CloudFront documentation) but I have an app that is essentially downloading a bunch of images from S3. I tried to setup a new CloudFront distribution, pointed the origin to my S3 bucket and wondering how will this change the way I access my images in my app. The app queries simpleDB to find out what to get and uses S3GetObjectRequest to download the images.
Do I have to use a different path to access images for CloudFront or how does this work?
Yes, you need to use the cloudfront distribution name instead of the bucket name. Since this is probably a download distribution, the name of the distribution starts typically with a 'd'. Generally, the full path to a cloudfront distribution looks like this: http://dxxxxxxx.cloudfront.net
I hope this helps?
来源:https://stackoverflow.com/questions/12356638/ios-aws-sdk-and-cloudfront-accessing-images