- Newest
- Most votes
- Most comments
How much data are you expecting to transfer and how much is it actually transferring? Well, if you are transfer data, you will be charged for data transfer after your free usage period. Even if you use private link / private endpoints, there will be a different processing fee.
By any chance, if you are transferring data to S3 or DynamoDB, you can setup VPC gateway endpoint and update your route table to use those endpoints - that will reduce the those costs.
When your App Runner service uses a VPC Connector to access resources, there are a few important aspects to understand about data transfer costs:
For data transfer charges, AWS typically charges for outbound traffic (data leaving AWS to the internet), while inbound traffic (data coming into AWS from the internet) is generally free. This means that when your App Runner service makes requests to external services on the internet, you're primarily charged for the response data coming back from those external services to your App Runner service, not the outbound request itself (unless the request contains significant data).
When you use a VPC Connector with App Runner, internet-bound traffic is indeed routed through a NAT Gateway in your VPC. This routing path incurs two types of charges:
-
NAT Gateway data processing charges: You pay for each gigabyte of data processed by the NAT Gateway, regardless of direction (both incoming and outgoing).
-
Data transfer out charges: You pay for data transferred from AWS to the internet.
The higher-than-expected costs you're seeing could be due to the combination of these charges. Since your traffic is going through the NAT Gateway, you're paying both for the NAT Gateway data processing (in both directions) and for the data transfer out to the internet.
To optimize costs, you could consider:
- Creating gateway VPC endpoints for AWS services that support them (like S3 or DynamoDB) to bypass the NAT Gateway
- Ensuring your NAT Gateway is in the same Availability Zone as your resources to minimize cross-AZ data transfer charges
- Analyzing your application's traffic patterns to identify opportunities for reducing data transfer
Sources
Data Transfer Charges | AWS re:Post
AWS Network Firewall Pricing – Network Security Service – Amazon Web Services
Pricing for NAT gateways - Amazon Virtual Private Cloud
answered 9 months ago
Relevant content
asked a year ago
asked 3 years ago
- AWS OFFICIALUpdated 7 months ago

Initially we thought this could be because our database in dev is public hence might be adding the outbound data cost but even after we made the db private in our dev the costs are still the same