Amazon VPC pricing
-
NAT Gateway
-
IPAM
-
Network Analysis
-
Public IPv4 Address
-
Amazon-provided contiguous IPv4 block
-
VPC Route Server
-
VPC Peering
-
ODB Peering
-
VPC Encryption Controls
-
NAT Gateway
-
If you choose to create a NAT gateway in your VPC, you are charged for each “NAT Gateway-hour" that your gateway is provisioned and available. Data processing charges apply for each gigabyte processed through the NAT gateway regardless of the traffic’s source or destination. Each partial NAT Gateway-hour consumed is billed as a full hour. You also incur standard AWS data transfer charges for all data transferred via the NAT gateway. If you no longer wish to be charged for a NAT gateway, simply delete your NAT gateway using the AWS Management Console, command line interface, or API.
NAT Gateway - Pricing example
Let’s assume you created a NAT gateway and you have an EC2 instance routing to the internet through the NAT gateway. Your EC2 instance behind the NAT gateway sends a 1 GB file to one of your Amazon Simple Storage Service (Amazon S3) buckets. The EC2 instance, NAT gateway, and S3 Bucket are in the same region of the US East (Ohio), and the NAT gateway and EC2 instance are in the same Availability Zone. We calculate your cost as follows:
- NAT Gateway Hourly Charge: NAT Gateway is charged on an hourly basis. For this region, the rate is $0.045 per hour.
- NAT Gateway Data Processing Charge: 1 GB data went through the NAT gateway. The Data Processing charge will result in a charge of $0.045.
- Data Transfer Charge: This is the standard EC2 Data Transfer charge. 1 GB data was transferred from the EC2 instance to S3 via the NAT gateway. There was no charge for the data transfer from the EC2 instance to S3, as it is Data Transfer Out to Amazon EC2 to S3 in the same region. There was also no charge for the data transfer between the NAT gateway and the EC2 instance since the traffic stays in the same Availability Zone using private IP addresses. There will be data transfer charges between your NAT gateway and EC2 instance if they are in a different Availability Zone.
Please visit the Data Transfer section of the Amazon EC2 Pricing page for more details.
In summary, your charge will be $0.045 for 1 GB data processed by the NAT gateway, and a charge of $0.045 per hour will always apply once the NAT gateway is provisioned and available. The data transfer has no charge in this example. However, if you send the file to a non-AWS internet location instead, there will be a data transfer charge, as it is Data Transfer Out from Amazon EC2 to the internet.
Note: To avoid the NAT Gateway Data Processing charge in this example, you could set up a gateway Type VPC endpoint and route the traffic to/from S3 through the VPC endpoint instead of going through the NAT Gateway. There are no data processing or hourly charges for using Gateway Type VPC endpoints. For details on how to use VPC endpoints, please visit VPC Endpoints Documentation.
Regional NAT Gateway Pricing
If you choose to create a NAT gateway with regional availability in your VPC, you are charged for each hour that the NAT Gateway is configured in each availability zone. For example, if your regional NAT is running across three Availability Zones(AZs) for one hour, you'll be billed for three 'NAT Gateway-hours'. When your regional NAT removes support from an AZ following changes in your workload footprint, billing automatically adjusts - you'll stop incurring charges for that specific AZ. Data processing charges apply for each gigabyte processed through the NAT gateway regardless of the traffic's source or destination. Each partial NAT Gateway-hour consumed is billed as a full hour. You also incur standard AWS data transfer charges for all data transferred via the NAT gateway. If you no longer wish to be charged for a NAT gateway, simply delete your NAT gateway using the AWS Management Console, command line interface, or API.Regional NAT Gateway - Pricing example
Let's assume you created a Regional NAT Gateway spanning three Availability Zones(AZs) and you have EC2 instances in each AZ routing to the internet through the Regional NAT Gateway. One of your EC2 instances behind the Regional NAT Gateway sends a 1 GB file to the internet. The EC2 instances and Regional NAT Gateway are all in the same region of US East (Ohio). We calculate your cost as follows:Regional NAT Gateway Hourly Charge: The Regional NAT Gateway is charged on an hourly basis per AZ. For this region, the rate is $0.045 per hour per AZ. With three AZs, the hourly charges will amount to $0.045 x 3 = $0.135 per hour. This charge reflects the Regional NAT Gateway being provisioned across three AZs
Regional NAT Gateway Data Processing Charge: 1 GB data went through the Regional NAT Gateway. Data Processing charge will result in a charge of $0.045.