它是不可能使用AWS CloudFront的下载我的私人形象S3? [英] Is it impossible to use AWS CloudFront for downloading my private image on S3?

查看:165
本文介绍了它是不可能使用AWS CloudFront的下载我的私人形象S3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个全球性的iOS应用程序与AWS SDK。
而且还有一个功能,用户获得的图像文件;只有当请求者是图像文件的上传者的朋友。
对于这个功能,我使用AWS的S3与私有访问存储服务。 我想用CloudFront的为我的用户获得的下载文件的速度。

I'm making a global iOS App with AWS SDK.
And there is a function for users to get image files; only if the requester is a friend of the image files' uploader.
For this function, I use AWS S3 for storage service with private access. And I want to use CloudFront for my users to get download files faster.

我应该设置水桶名下载的AWS S3 SDK,但似乎CloudFront的不适合这个桶的名字支持。
是AWS CloudFront的仅适用于具有URL公众的东西?

I should set the bucket name for downloading on AWS S3 SDK, but it seems that the CloudFront does not support for this bucket name.
Is AWS CloudFront only for public things with url?

推荐答案

如果你想为通过CloudFront的私人内容,你会发现这个文档有用的http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html.目前,AWS SDK为iOS不支持CloudFront的直接。您需要手动登录请求。一个相关的问题是问在AWS论坛 https://forums.aws.amazon.com /thread.jspa?messageID=336955

If you want to serve private content via CloudFront, you will find this doc useful http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html. Currently the AWS SDK for iOS doesn't support CloudFront directly. You need to manually sign the request. A related question is asked on AWS forum https://forums.aws.amazon.com/thread.jspa?messageID=336955.

这篇关于它是不可能使用AWS CloudFront的下载我的私人形象S3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆