Most founders and IT heads in India have heard a version of this story: the cloud bill is predictable for months, and then one month it doubles. Sometimes it is growth. More often it is a configuration mistake that nobody noticed because nobody was looking at the bill until the card was charged. The good news is that the causes are well known and the controls are cheap. This guide uses AWS as the example, but the same patterns apply to Azure and Google Cloud.
Why are AWS bills so hard to predict?
Cloud pricing is usage-based across hundreds of meters: compute hours, storage, requests, data transferred, IP addresses, log volume. Many of these are small per unit and invisible on an architecture diagram. A few examples from AWS's own published pricing:
- AWS gives 100 GB of data transfer out to the internet free each month, aggregated across services and regions. Beyond that, data leaving AWS is charged per GB.
- Every public IPv4 address, in use or idle, is charged; the VPC pricing page lists $0.005 per hour, roughly $3.60 a month per address.
- A NAT gateway, often created by default in templates so private servers can reach the internet, is charged by the hour and per GB processed; in AWS's US East (Ohio) example both are $0.045.
None of these is large on its own. Multiplied by dozens of resources and terabytes of traffic, they become a significant line on the bill.
The common causes of AWS bill shock
| Cause | How it happens | How to catch it |
|---|---|---|
| Idle resources | Test servers, old databases, unattached disks, snapshots and load balancers left running after a demo or a migration | Tag every resource with owner and environment; weekly review of untagged and idle resources |
| Oversized instances | Production sized for a launch peak that never came; databases on the largest class "to be safe" | Check CPU and memory utilisation; right-size quarterly |
| Data transfer | Serving large files or video directly from servers or storage without a CDN; cross-region replication; chatty services across availability zones | Look at data transfer by usage type in Cost Explorer; put a CDN in front of public assets |
| NAT gateway processing | Private servers pulling large container images, updates or third-party API traffic through a NAT gateway | Use VPC endpoints for AWS services such as S3; cache images; review NAT bytes processed |
| Logging and monitoring | Debug-level logs in production, logs kept forever, high-cardinality custom metrics | Set log levels and retention periods; sample verbose logs |
| Public IPv4 addresses | Every server given a public IP by default | Use a load balancer or private subnets; release unused Elastic IPs |
| Storage growth | Backups and snapshots that never expire; old versions in versioned buckets | Lifecycle rules to move or delete old data |
| Leaked credentials | Access keys committed to a public repository or left in a mobile app, then used by attackers to launch instances | No long-lived keys in code; GuardDuty; anomaly alerts |
| AI and GPU workloads | GPU instances left running between experiments; model APIs called in loops | Separate budgets and alerts for AI spend; auto-stop schedules |
The worst case: leaked keys and cryptocurrency mining
The most painful bills come from compromise, not waste. When attackers obtain cloud credentials, a common goal is to launch compute and use it for themselves; AWS's GuardDuty threat detection service even has a specific finding type for an EC2 instance communicating with addresses associated with cryptocurrency activity, and says that if this is unexpected, the instance is likely compromised.
AWS's own guidance on access keys is blunt: prefer temporary credentials such as IAM roles over long-term access keys, never create access keys for the root user, and never put access keys or credential information in application files or project folders. Keys in a Git repository, a shared Postman collection, a frontend bundle or an Android APK should be treated as public.
If you suspect a leak: deactivate and rotate the key immediately, look for resources you do not recognise in every region, including ones you never use, check CloudTrail for what the key did, and contact AWS Support about the charges.
Alerts: what AWS Budgets and Cost Anomaly Detection can and cannot do
- AWS Budgets lets you set cost or usage budgets with alerts on actual and forecasted spend, by email or SNS, and can trigger actions such as applying an IAM policy that blocks new resources. It is updated up to three times a day, and AWS notes there can be a delay between incurring a charge and receiving the notification, so costs can exceed the threshold before you hear about it.
- AWS Cost Anomaly Detection uses machine learning to flag unusual spend and ranks root causes by service, account, region and usage type. It runs roughly three times a day on billing data that can lag by up to 24 hours, and needs about 10 days of history for a new service.
So alerts are a safety net, not a brake. A miner launched on Friday night can run for many hours before any billing-based alert fires. That is why prevention (no leaked keys, least privilege, limits on what can be launched) matters more than detection.
A cost-control setup for a small team
Day one
- Turn on MFA for the root user, lock away its credentials and do not use it day to day.
- Create a monthly cost budget with alerts at 50, 80 and 100 percent of actual spend and at 100 percent of forecast, sent to a channel that more than one person reads.
- Enable Cost Anomaly Detection with an alert subscription.
- Enable GuardDuty and CloudTrail in all regions.
- Where you use AWS Organizations, block regions you do not use.
Every week
- Fifteen-minute cost review: top five services by spend, anything new, anything untagged.
- Delete or stop idle test resources; check for unattached disks and stale snapshots.
Every quarter
- Right-size instances and databases using utilisation data.
- Commit to Savings Plans or reserved capacity only for steady baseline usage.
- Review data transfer, NAT and logging costs and the architecture behind them.
- Rotate or remove any remaining long-lived access keys.
The Indian angle
For Indian startups and SMEs, cloud bills are usually in US dollars or dollar-linked, so currency movement adds to the surprise. Many teams also run a single AWS account for production, staging and every developer's experiments, which makes it impossible to see who spent what. Separate accounts (or at least strict tagging) for production and non-production are the single most useful structural fix. If you need data to stay in India, check region choices for backups and replicas too, because cross-region copies add both cost and compliance questions. Our cloud and DevOps team can set up this account structure for you.
How Cehpoint can help
Cehpoint's cloud and AI cost optimisation service reviews your bill line by line, finds idle and oversized resources, redesigns expensive data paths and sets up budgets, anomaly alerts and tagging so the next surprise is caught early. If you suspect leaked credentials, our security testing team can check repositories, apps and cloud configuration for exposed secrets. To talk it through first, book a cloud cost and hosting review.