Skip to main content

VPC: Delete Unused NAT Gateways

Difficulty: Easy

Description

These NAT gateways have processed almost no traffic in a month, but AWS still bills them by the hour. Deleting them removes that hourly charge.


Selection Criteria

  • The NAT gateway was billed for more than 150 of the last 168 hours.

  • Less than 1 MB of data was processed, in and out, in the last 31 days.

  • The NAT gateway had no active connections in the last 31 days.


Expected Saving

NAT Gateway costs $0.045/hour (~$32/month) regardless of traffic, plus $0.045/GB of data processed.

Deleting an idle gateway eliminates the hourly charge entirely.


Operational Impact

  • Breaking changes: Deleting a NAT Gateway removes outbound internet access for all instances in the associated subnets that route through it.

  • ⚠️ Warning — Verify dependencies: Before deletion, confirm that no EC2 instances, Lambda functions, or other services in the associated subnets rely on the gateway for outbound connectivity.

  • ⚠️ Warning — Irreversible: Deletion is permanent. Restoring outbound access requires creating a new NAT Gateway and updating the relevant route tables.


References

Did this answer your question?