Is my understanding correct about how AWS charges Data Transfer IN via public IP

0

As stated here on demand pricing, AWS does not charge for all Data Transfer IN To Amazon EC2 From Internet, however, it will charge for Data Trasnsfer IN Amazon EC2 From public IP address within the same AWS Region.

Data transferred "in" to and "out" from Amazon EC2, Amazon RDS, Amazon Redshift, 
Amazon DynamoDB Accelerator (DAX), and Amazon ElastiCache instances, Elastic Network 
Interfaces or VPC Peering connections across Availability Zones in the same AWS Region 
is charged at $0.01/GB in each direction.

IPv4: Data transferred "in" to and "out" from public or Elastic IPv4 address is 
charged at $0.01/GB in each direction.

IPv6: Data transferred "in" to and "out" from an IPv6 address in a different VPC is 
charged at $0.01/GB in each direction.

I am trying to subscribe to Binance market data with an AWS EC2. Assume that the Binance server and my EC2 are within the same Availability Zones, in this case, I have to subscribe to Binance via public IP, so I will be charged at $0.01/GB for subscribed data if my understanding is correct.

I am confused because, according to my understanding, it would be free IF the Binance server is not in AWS but somewhere else. It is counter-intuitive.

Is my understanding correct about this? It will be helpful if anyone has ideas to reduce bandwidth costs when subscribing to the Binance server.

Thanks for spending time on this.

asked 15 days ago48 views
1 Answer
-1

Your understanding is partially correct, but there are some important clarifications to make:

  1. Data Transfer IN from the internet to Amazon EC2 is generally free. This includes data coming from external sources like Binance, regardless of whether they are hosted on AWS or not.

  2. The charges you're referring to for data transfer "in" and "out" using public or Elastic IPv4 addresses within the same AWS Region apply to traffic between AWS resources, not traffic from the internet.

  3. In your scenario with Binance, assuming their servers are not part of your AWS infrastructure:

    • If you're subscribing to Binance market data from the internet, the incoming data to your EC2 instance would be free.
    • You would only incur charges for any data you send out to the internet or between different Availability Zones within AWS.
  4. The $0.01/GB charge for data transfer between Availability Zones in the same region applies when you're transferring data between your own resources in different AZs, not for incoming internet traffic.

  5. IPv6 data transfer charges only apply when transferring between different VPCs, not for internet traffic.

To reduce bandwidth costs when subscribing to the Binance server:

  1. Ensure your EC2 instance is in the most appropriate region to minimize latency and potential cross-region data transfer charges.
  2. If possible, use a single EC2 instance to receive and process the data, avoiding unnecessary internal data transfers.
  3. Be mindful of any outbound data you might be sending, as that would incur charges.

Remember, while inbound data from the internet is generally free, you should always monitor your usage and costs to avoid any unexpected charges.
Sources
Regional data transfer charges | AWS re:Post
Community | Optimizing Network Traffic and Cost in AWS During Migration
Can someone explain data transfer charges in detail? | AWS re:Post

profile picture
answered 15 days ago
  • Data Transfer IN from the internet to Amazon EC2 is generally free. This includes data coming from external sources like Binance, regardless of whether they are hosted on AWS or not.

    I think this is incorrect according to my Cost Explorer, the PublicIP-In is the major cost when I group my cost by API operation.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions