amazon-web-services – AWS EC2弹性IP带宽使用和费用

我有一些关于弹性IP和它的费用的问题。一些博客说,弹性IP将收取您使用的带宽

Elastic IP addresses charge by bandwidth and have an hourly price
when they are not attached to a running instance

  
  从
  http://things.zarate.org/scaling-a-single-ec2-instance-and-downsizing

根据我在阅读一些博客和文档后的理解,如果您在实例之间的通信中使用弹性IP,并且如果您的弹性IP在您的帐户上处于空闲状态,而不与您的实例相关联,

If you communicate between instances using public or elastic IP
address even in the same region you pay regional data transfer
rates(0.01$ per GB in/out).

  
  从
  http://www.cloudiquity.com/2009/02/using-amazon-ec2-public-ip-address-inside-ec2-network/

请参阅AWS计算器屏幕截图 – > http://shareimage.org/images/lzjj3eull2ux0lo663fr.png

所以我的困惑在于是否AWS收取任何种类的流量请求(使用我的浏览器,SSH)使用弹性IP?

所以如果例如:我ssh-ed到我的实例使用弹性IP(例如8.8.8.8),而不是像ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com给出的公共dns名称,将这个带宽注册为简单带宽输入/输出使用或公共/弹性IP带宽?

谢谢

您应该将数据传输费用问题与弹性IP地址收费问题解耦,因为它们彼此完全独立:

弹性IP地址

每个实例分配和使用一个Elastic IP addresses基本上是免费的,除非弹性IP地址当前没有与实例相关联,请参见第Amazon EC2 Pricing页的弹性IP地址:

  • $0.00 for one Elastic IP address associated with a running instance
  • $0.005 per additional Elastic IP address associated with a running instance per hour on a pro rata basis
  • $0.005 per Elastic IP address not associated with a running instance per hour on a pro rata basis
  • $0.00 per Elastic IP address remap for the first 100 remaps per month
  • $0.10 per Elastic IP address remap for additional remaps over 100 per month

    [emphasis mine]

这种方法的基本原理在相应的FAQ Why am I charged when my Elastic IP address is not associated with an instance?

In order to help ensure our customers are efficiently using the Elastic IP addresses, we impose a small hourly charge for each address when it is not associated to a running instance.

数据传输

同样,关键方面在第Amazon EC2 Pricing页的数据传输部分中进行了说明(并通过一些常见问题解答进行了详细说明):

您主要支付互联网数据传输费用,即Amazon EC2中“传入”和“传出”的数据,其中特别排除以下内容:

There is no Data Transfer charge between Amazon EC2 and other Amazon
Web Services within the same region (i.e. between Amazon EC2 US West
and Amazon S3 in US West). Data transferred between Amazon EC2
instances located in different Availability Zones in the same Region
will be charged Regional Data Transfer. Data transferred between AWS
services in different regions will be charged as Internet Data
Transfer on both sides of the transfer.

警告

需要注意的重要警告确实如下:

Public and Elastic IP and Elastic Load Balancing Data Transfer

  • $0.01 per GB in/out – If you choose to communicate using your Public or Elastic IP address or Elastic Load Balancer inside of the Amazon
    EC2 network, you’ll pay Regional Data Transfer rates even if the
    instances are in the same Availability Zone. For data transfer within
    the same Availability Zone, you can easily avoid this charge (and get
    better network performance) by using your private IP whenever
    possible.

补救

上述段落中未提及的是AWS DNS基础架构的一个重要且非常有用的功能,但请参阅Public IP Addresses and External DNS Hostnames

We provide each instance that has a public IP address with an external
DNS hostname. We resolve an external DNS hostname to the public IP
address of the instance outside the network of the instance, and to
the private IP address of the instance from within the network of the
instance.

也就是说,它将公共DNS(例如ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com)解析为私有IP地址,当您在Amazon EC2网络中使用它时,以及公共或弹性在Amazon EC2网络外部使用时的IP地址。像这样,你自动获得免费的可用区域数据传输和减少费用区域数据传输,例如。他们正在积极应用他们的建议,以便在Amazon EC2实例之间进行通信时始终使用内部地址[其]确保您的网络流量遵循通过我们网络的最高带宽,最低成本和最低延迟路径。

如果您直接使用IP地址(即没有DNS),这显然不起作用,因此在EC2的上下文中通常最好避免使用这个和其他原因。

http://stackoverflow.com/questions/10051533/aws-ec2-elastic-ips-bandwidth-usage-and-charges

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:amazon-web-services – AWS EC2弹性IP带宽使用和费用