简体   繁体   English

确保从S3到EC2的免费数据传输

[英]Ensure free data transfer from S3 to EC2

Amazon's pricing documentation says 亚马逊的定价文件

"Data Transfer OUT From Amazon S3 To Amazon EC2 in the Northern Virginia Region (is) $0.000 per GB" “在北弗吉尼亚地区从Amazon S3到Amazon EC2的数据传输输出(is)每GB $ 0.000”

Is there anything special I need to do to ensure that I don't get charged for transfers from S3 to EC2, assuming both are in the Northern Virginia Region? 假设两者都在北弗吉尼亚州,我是否需要做些特别的事情以确保不收取从S3到EC2的费用? IE) Is executing a GET request from this EC2 instance to https://s3.amazonaws.com/ {bucketName}/{resource} going to automatically get counted as 'free' without doing anything additional? IE)是否正在执行从此EC2实例到https://s3.amazonaws.com/ {bucketName} / {resource}的GET请求,而无需执行其他任何操作就自动将其视为“免费”? Or is there a private IP address for S3 that I need to access in this scenario? 还是在这种情况下我需要访问S3的专用IP地址?

If the request comes from within the same region, you're likely to be redirected to the right endpoint and not going to be charged. 如果请求来自同一地区,则很可能将您重定向到正确的端点,并且不会收费。 If you want to be 100% sure, however, you can choose the correct endpoint yourself: 但是,如果要100%确定,则可以自己选择正确的端点:

http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region

This may be particularly useful if you use API and tools from 3rd parties, which sometimes use varying default endpoints, unless you override them explicitly. 如果您使用第三方的API和工具(有时会使用不同的默认终结点),则这可能特别有用,除非您明确地覆盖它们。

As long as your S3 buckets are in the same region as your EC2 machines, your data xfers are free. 只要您的S3存储桶 EC2计算机位于同一区域 ,您的数据xfer都是免费的。 If you always deal with the same region, then you do not have to worry about the data xfer cost. 如果您始终处理相同的区域,则不必担心数据传输成本。

Data Transfer OUT From Amazon S3 To Amazon EC2 in the same region $0.000 per GB 从Amazon S3到同一区域的 Amazon EC2的数据传输输出每GB $ 0.000

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM