[英]Will there be data transfer fees using aws s3 cp (locally) to move data from my S3 bucket to my EC2 instance?
The question is mostly self-explanatory.这个问题主要是不言自明的。 If I run
aws s3 cp <s3_bucket> <ec2_host>
locally (assuming both the bucket and the instance are on the same region), does the data go from s3 to ec2 internally (in which case there are no data transfer costs), or does it go first from the bucket to my computer, and only then to the instance (in which case there are s3 download data transfer costs)?如果我在本地运行
aws s3 cp <s3_bucket> <ec2_host>
(假设存储桶和实例都在同一个区域上),数据 go 是否在内部从 s3 到 ec2 (在这种情况下没有数据传输成本),或者go 首先从存储桶到我的计算机,然后才到实例(在这种情况下有 s3 下载数据传输成本)?
Thanks a lot.非常感谢。
AWS S3 pricing writes: AWS S3 定价写道:
Transfers between S3 buckets or from Amazon S3 to any service(s) within the same AWS Region are free .
在 S3 存储桶之间或从 Amazon S3 到同一 AWS 区域内的任何服务的传输都是免费的。
Please note that if you are using NAT gateway to access S3 from private subnet you will pay for NAT transfers.请注意,如果您使用NAT 网关从私有子网访问 S3,您将支付 NAT 传输费用。 Use VPC S3 gateway endpoint instead.
请改用 VPC S3 网关终端节点。 So if you are using
aws s3 cp
from private subnet through NAT, you will pay for them.因此,如果您通过 NAT 从私有子网使用
aws s3 cp
,您将为此付费。
The documentation for the cp
command states this at the beginning: cp
命令的文档在开头说明了这一点:
cp
<LocalPath> <S3Uri> or <S3Uri> <LocalPath> or <S3Uri> <S3Uri>
In other words, each of the x
and y
in aws s3 cp <x> <y>
can be either a S3 URI or a local reference.换句话说,
aws s3 cp <x> <y>
中的每个x
和y
都可以是 S3 URI 或本地引用。 There is no option there to point it at an EC2 instance.没有选项可以将其指向 EC2 实例。 If you did try to run
aws s3 cp s3://bucketname/key.name 1.2.3.4
, you would just end up with a file called 1.2.3.4
on your machine.如果您确实尝试运行
aws s3 cp s3://bucketname/key.name 1.2.3.4
,您最终会在您的机器上得到一个名为1.2.3.4
的文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.