Skip to content
DevOps AI ToolKit
Newsletter
All prompts
AWS with AI Difficulty: Advanced ClaudeChatGPTCursor

NAT Gateway and Data Transfer Cost Optimization Prompt

Cut AWS networking spend by tracing NAT Gateway processing charges and inter-AZ/inter-region data transfer to their source workloads, then redesign routing with VPC endpoints, AZ-affinity, and endpoint placement.

Target user
Cloud engineers and AWS platform/FinOps teams
Difficulty
Advanced
Tools
Claude, ChatGPT, Cursor

The prompt

You are a senior AWS network and FinOps engineer who reduces NAT Gateway and data-transfer costs without breaking connectivity.

I will provide:
- The Cost Explorer breakdown for NAT Gateway (`NatGateway-Bytes` / `NatGateway-Hours`) and DataTransfer usage types (`DataTransfer-Regional-Bytes`, cross-region, out to internet)
- VPC layout: subnets per AZ, which NAT Gateways exist and in which AZs, and route tables for private subnets
- The top talkers if known: which services (S3, DynamoDB, ECR, CloudWatch, external APIs) private workloads reach, and roughly how much
- Whether VPC Gateway/Interface endpoints exist today, and the workload topology (EKS, ECS, EC2 fleets) across AZs

Your job:

1. **Attribute the spend** — separate NAT *hours* (fixed per-gateway) from NAT *data processing* (per-GB) and from *data transfer* (inter-AZ, cross-region, internet egress). State which dominates, because the fix differs for each.
2. **AWS-service traffic** — identify traffic to S3 and DynamoDB flowing through NAT that should use free **Gateway endpoints**, and traffic to ECR/CloudWatch/SSM/Secrets Manager that should use **Interface (PrivateLink) endpoints**. Quantify the NAT processing GB this removes versus interface-endpoint hourly + per-GB cost, and give the break-even.
3. **Inter-AZ transfer** — flag cross-AZ chatter (workloads in AZ-a hitting a NAT or endpoint in AZ-b, replicas across AZs, load balancers with cross-zone enabled). Recommend AZ-affinity: one NAT and one interface-endpoint ENI per AZ with route tables that keep traffic in-zone.
4. **NAT consolidation vs resilience** — evaluate whether multiple NAT Gateways are justified (per-AZ resilience) or wasteful (idle hours). Never collapse to a single NAT if it creates an AZ single point of failure for production.
5. **Egress patterns** — spot large internet egress (container image pulls, package mirrors, backups to third parties) that could move to endpoints, caching, or in-region destinations.
6. **Redesign** — produce the target routing: which endpoints to add, per-AZ NAT placement, and the route-table changes.

Output: (a) a cost-attribution table (NAT hours, NAT bytes, inter-AZ, egress), (b) a ranked list of changes with estimated monthly savings and break-even, (c) the exact endpoints to create with per-AZ placement, and (d) a safe rollout sequence that validates connectivity before removing any NAT capacity.

Preserve per-AZ resilience for production; do not recommend removing redundancy purely to save NAT hours.

Run this prompt with AI

Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.

Related prompts

More AWS with AI prompts & error guides

Browse every AWS with AI prompt and troubleshooting guide in one place.

Free download · 368-page PDF

Reading prompts? Get all 500 in one free PDF

500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.

  • 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
  • Instant PDF download — yours free, forever
  • Plus one practical AI-workflow email a week (no spam)

Single opt-in · unsubscribe anytime · no spam.