【发布时间】:2013-10-18 21:41:19
【问题描述】:
Azure 提供共享访问签名([1]、[2]、[3]),可以将访问(读/写)委托给 Azure 存储帐户中的特定 blob/容器/表/队列使用通过 REST API 生成的访问密钥。 AWS 是否提供类似功能?
【问题讨论】:
-
您可以使用 S3 存储桶策略或 IAM 策略。
标签: azure amazon-web-services amazon-s3 azure-storage
Azure 提供共享访问签名([1]、[2]、[3]),可以将访问(读/写)委托给 Azure 存储帐户中的特定 blob/容器/表/队列使用通过 REST API 生成的访问密钥。 AWS 是否提供类似功能?
【问题讨论】:
标签: azure amazon-web-services amazon-s3 azure-storage
它几乎与 Azure 提供的相同,只是没有像 SAS 这样的特殊名称。详情请见http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html。
【讨论】:
Amazon AWS 中的共享访问签名等效为 Query String Authentication,但它仅适用于 Amazon S3(等效于 Windows Azure Blob 存储)。 AWS 没有任何类似于 SimpleDB/DynamoDB(Windows Azure 表存储的对应部分)和 Simple Queue Service(Windows Azure 队列服务的对应部分)的共享访问签名。
我还在一系列博客文章中对 Amazon AWS 和 Windows Azure 存储服务(S3 v/s Blob 存储等)进行了比较,您可以在此处阅读:http://gauravmantri.com/?s=Amazon+Comparing。认为您可能会发现它很有用。
【讨论】:
我还没有尝试过,但似乎是预签名 URL:请参阅 http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-examples.html 的“Amazon S3:获取具有特定负载的 PUT 操作的预签名 URL”部分
【讨论】:
S3 中的预签名 URL 是等效的: https://docs.aws.amazon.com/AmazonS3/latest/dev/ShareObjectPreSignedURL.html
还有一些方法可以用本文档中没有提到的 SDK 生成,你可以google一下。
例如 Python: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-presigned-urls.html
【讨论】: