S3: choosing the right storage class
| Class | For which objects | Good to know |
|---|---|---|
| S3 Standard | Read often | Most expensive per stored gigabyte, no retrieval fee |
| S3 Intelligent-Tiering | Unpredictable access | Automatic moves between tiers, for a small per-object monitoring fee; objects under 128 KB are not moved |
| Standard-IA and One Zone-IA | Read less than once a month | Per-gigabyte retrieval fee, 30-day minimum duration |
| Glacier Instant Retrieval | Archives read rarely, but quickly | 90-day minimum duration |
| Glacier Flexible Retrieval and Deep Archive | Archives and compliance | Restore in minutes to hours; 90 and 180 days minimum |
Minimum durations matter: an object deleted or moved before the end is billed as if it had stayed. Cold classes only pay off for data that really stays there.
The S3 levers that pay off fast
- Lifecycle rules per bucket: move to a cold class after 30, 90 or 180 days depending on use, and expire data that no longer needs to exist (logs, temporary exports).
- Noncurrent versions: on a versioned bucket, every overwrite keeps the old version, billed like the rest. A noncurrent version expiry rule fixes it.
- Incomplete multipart uploads: invisible in the console, but billed. A lifecycle rule deletes them after a few days.
- Requests: millions of small objects read and written all the time sometimes cost more in requests than in storage. Grouping small files changes the picture.
- S3 Storage Lens: the free view by bucket and account, to spot the largest volumes and the buckets without lifecycle.
Data transfer: where the bill surprises
| Traffic | Order of magnitude, public prices | The lever |
|---|---|---|
| Inbound from the internet | Free | – |
| Outbound to the internet | Around $0.09 per GB for the first TB of the month, decreasing | CloudFront, compression, caching |
| NAT Gateway | An hourly fee, plus about $0.045 per GB processed | VPC gateway endpoints for S3 and DynamoDB, free |
| Between availability zones | About $0.01 per GB in each direction | Keep chatty exchanges within one zone |
| Between regions | Around $0.02 per GB depending on regions | Limit replication to what needs it |
These prices are orders of magnitude from AWS public price lists for the main regions: check yours. Since 2024, every public IPv4 address is also billed by the hour, whether it is used or not.
The most common fixes
- Add an S3 VPC gateway endpoint to VPCs whose instances read or write S3 through a NAT Gateway. Traffic no longer goes through the NAT, and that line can drop sharply.
- Serve public content through CloudFront: transfer from S3 to CloudFront is free, and caching reduces outbound volume.
- Review placement of an application and its database, or a cluster and its storage, when they exchange a lot across two zones.
- Release public IPs that are no longer used, and stop assigning them by default to private instances.
Spotting them in your bill
In the export, data transfer is spread across each service's usage types (DataTransfer-Out-Bytes, NatGateway-Bytes, DataTransfer-Regional-Bytes…). Our analysis tool groups them and flags S3, NAT Gateways, unused public IPs and CloudWatch Logs from your CUR or FOCUS export. To read the export itself, see our guide Understanding your AWS bill.