Data transfer limit in free tier.

1

I create an ec2 ubuntu instance. But when I use it and upload and download files in it (simple data transfer), app data go through regional data limit means AWS to azs, but I transfer data in open internet only not in any other regional connection, when I check the reason I found out I use elastic ip that's why every data transfer taken as regional not global out front. But my question is if I don't use elastic ip how could I get dedicated ip, and I I use elastic ip then data doesn't go out out front, but in regional. Is there any way to use elastic ip but data doesn't go through regional. Please note I really doesn't transfer data any regional service, I only received and outgoing data o open public area like googledrive, etc. So I didn't get that 100gd free data transfer instead I get charged at regional data transfer which is only 1gb limit.

Rishav
已提問 8 個月前檢視次數 483 次
2 個答案
1
已接受的答案

Instance with Elastic IP:

  1. When uploading a 1GB file to googledrive, the cost will be $0.01/GB x 1GB + $0.09 = $0.10.
  2. When downloading a 1GB file from googledrive, the cost will be $0.01/GB x 1GB = $0.01 and $0.09 is calculated toward the 100GB free tier
  3. You'll pay $0.01 for every GB transferred in each direction within the region

Instance without Elastic IP:

  1. You'll need to have a NAT Gateway in the VPC
  2. When uploading a 1GB file to googledrive, the cost will be $0.045/GB x 1GB + $0.09 = $0.135 and $0.09 is calculated toward 100GB free tier
  3. When downloading a 1GB file from googledrive, the cost will be $0.045/GB x 1GB = $0.045
  4. You don't pay anything for data transferred within the region

So if the instance is only uploading and downloading data from googledrive, it's actually cheaper by using an Elastic IP.

profile pictureAWS
專家
已回答 8 個月前
profile picture
專家
已審閱 3 天前
profile picture
專家
已審閱 2 個月前
  • But then why my data transfer doesn't comes under that 100gb free tier, why I get charged as regional data transfer limit which is 1gb only.

  • let's breaking "uploading 1GB file to googledrive" into two parts:

    1. Your instance with Elastic IP will have to transfer the file to the IGW (Internet Gateway) which is the $0.01GB X 1GB = $0.01. The 1GB here is not counted for the 100GB Internet Out, but counted regional.
    2. The IGW will then transfer the file to googledrive which is the $0.09 x 1GB = $0.09 and this 1GB is counted toward the 100GB Internet Out.

    So if your plan is to take advantage of the 100GB free tier, you would want to remove the elastic IP from the instance and move the instance into a private subnet. You'll be paying $0.045 for each GB dowloaded and uploaded from\to googledrive.

1

Inter-region data transfer charges are incurred not because you use Elastic IPs. Check the Data Transfer section on this page for more information. If you are charged for sending data between regions, use tcpdump or Wireshark to find where the data is transferred. Alternatively, you can use VPC Flow Logs but consider the associated pricing.

AWS
Max
已回答 8 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南