最佳实践:AmazonS3 URL共享URL

2023-09-11 23:41:28 作者:我会坚强@

我规划,继续AmazonS3访问文件为私有。但我想用有限的一群人共享文件的URL。

I planning to keep access to files on AmazonS3 as private. But I would like to share file URL with a limited group of people.

什么是推荐的方式这样做?

What is recommended way for doing this ?

推荐答案

刚刚创建的签署,有时间限制的网址,并与他们分享的任何方式你喜欢。

Just create a signed, time limited url and share it with them in whatever way you like.

您也可以看看使用 AWS身份和访问管理(IAM)(目前在Beta版)对于其他的方式来控制访问。但是,说实话,查询字符串认证将是最简单的实现和配置应该符合大多数用例。

You could also look at using AWS Identity and Access Management (IAM) (currently in Beta) for other ways to control access. But, honestly, querystring authentication is going to be the simplest to implement and should be fine for the majority of use cases.