问题描述
我想将我的预签名URL附加到CloudFront URL上以代替使用
I want to append my pre-signed URL to a CloudFront URL to use instead
任何想法如何实现这一目标?
any idea how to achieve this?
推荐答案
我找到了相关的问题,它符合我的需求。我将文件存储在S3新加坡和欧洲的外部消费者中。 AWS默认带宽质量相当差(需要花几分钟的时间为我的许多最终用户下载50 MB文件),因此我想通过哑 CDN层优化其网络路径(不利用任何缓存) ,只是将其用于更优质的网络路径。)
I find the question relevant, it matches my needs. I have files stored in S3 Singapore and external consumers in Europe. AWS default bandwidth quality is quite poor (takes several minutes to download a 50 MB file for quite a few of my end users), so I'd like to optimize their network path through a layer of "dumb" CDN (not leveraging any caching, just using it for more qualitative network paths).
结果是 Amazon S3 Transfer Acceleration确实做到了:
Turns out "Amazon S3 Transfer Acceleration" does exactly that:https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html
============
============
为什么使用Amazon S3 Transfer Acceleration?
出于各种原因,您可能想在存储桶上使用Transfer Acceleration,包括:
You might want to use Transfer Acceleration on a bucket for various reasons, including the following:
-
您有从世界各地上传到集中存储桶的客户。
You have customers that upload to a centralized bucket from all over the world.
您在
大洲中定期将千兆字节数据转换为TB级数据。
You transfer gigabytes to terabytes of data on a regular basis acrosscontinents.
上传到Amazon S3时无法利用Internet上的所有可用带宽。
You are unable to utilize all of your available bandwidth over the Internet when uploading to Amazon S3.
Amazon S3传输加速入门
开始使用Amazon S3传输加速,执行以下步骤:
To get started using Amazon S3 Transfer Acceleration, perform the following steps:
-
在存储桶上启用传输加速
Enable Transfer Acceleration on a bucket
使用以下s3加速端点域名之一向启用加速的存储桶传输数据:
Transfer data to and from the acceleration-enabled bucket by using one of the following s3-accelerate endpoint domain names:
- bucketname.s3-accelerate.amazonaws.com –访问启用加速的存储桶。
===========
============
备注:
- 它比S3 + Cloudfront贵。您需要支付正常的S3带宽+约0.04 USD / GB的加速费用(而使用Cloudfront时,S3<> Cloudfront带宽是免费的)
- 您可能需要重新签名网址。通常,主机是签名的一部分,加速需要使用其他主机。但是,这只是正常的S3签名,而不是完全不同的Cloudfront签名。
这篇关于带有Cloudfront的预设S3 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!