• 4 min read • Backend Engineering

Cloud free tiers don't remove cost, they relocate it

“Free tier” reads like the cost went away, but it moved. Each managed cloud service with a free tier is free under specific constraints, and staying inside them costs something even when the invoice says zero. Sometimes the cost is complexity: workarounds and extra plumbing to avoid a service that would otherwise be the obvious default. Sometimes it’s risk: a quota that throttles you or starts billing the moment you cross it, often without warning. Sometimes it’s flexibility, because the free option limits which implementation choices are available.

K2-Chat, a multimodal RAG chat platform, was rebuilt from a Kubernetes cluster billing by the hour into a stack running entirely on AWS, Cloudflare and Gemini free tiers. Each infrastructure decision in that rebuild shows where the cost went.

The relocation shows up service by service

Some services are free forever at low volume. Cloudflare Workers (100,000 requests/day), Cloudflare Pages, Cognito (50,000 MAUs/month), DynamoDB, SQS, and Lambda all fall in that bucket for a project at personal/demo scale. Others are only free for an AWS account’s first 12 months: S3, Glue, Step Functions, CloudWatch Logs. A third group has no meaningful free tier at all. That’s where the interesting decisions are, because “avoid this service” is a design constraint that affects everything around it:

ServiceWhy it doesn’t fit free-tier constraintsWhat replaced itWhat the replacement costs
NAT Gateway~$32+/month just to exist, independent of trafficNo VPC for LambdaLambda loses the ability to sit behind a private network boundary
API Gateway (REST)Free tier expires after 12 months; REST runs ~3.5x the cost of HTTP ($3.50/M vs $1.00/M)Cloudflare WorkersA second platform to operate instead of one AWS-native edge layer
RDS / pgvectorNo always-free tier, ~$13/month minimumDynamoDB + PineconeTwo separate stores instead of one relational one, more moving parts to keep consistent
OpenSearchNo workable free tier at this scalePineconeA third-party vendor dependency outside AWS’s billing entirely
EMR ServerlessNo free tier at all, billed per vCPU/GB-hour with no bufferAWS Glue (10 DPU-hours/month free)A much smaller, easier-to-exceed processing budget
BedrockPay-per-use, no free tierGemini free tierA model provider chosen by its pricing tier, not by fit for the task

The last column is engineering cost that a “just use RDS” or “just use Bedrock” version of this stack wouldn’t have paid. None of it shows up as a dollar figure. It shows up as an extra service to operate, an extra API to integrate, or a capability given up.

Where the cost hides even inside the free services

Free services are only free under specific usage patterns, and the risk is in the gap between “free tier” and “free however you use it”.

CloudWatch log ingestion is billed at $0.50/GB with a 5GB/month free allowance, and log groups don’t expire on their own:

Lambda logging full JSON payloads at DEBUG level, e.g. 5 KB per request times 10 million daily requests, generates 50 GB/day, costing roughly $750/month in log ingestion alone, often more than the Lambda compute itself.

That isn’t about traffic outgrowing the free tier. It’s what happens when the default logging level and retention are left alone. The mitigation is configuration made in advance: cap every log group’s retention at 7 days and keep log levels at INFO/ERROR instead of DEBUG. That’s cheap to set up front and expensive to discover later.

Glue is similar. It’s billed at roughly $0.44 per DPU-hour, no free-forever tier, only 10 DPU-hours/month free on a new account:

A 10-worker job running for 1 hour = roughly $4.40.

Ten workers for an hour sounds like a reasonable default for a Spark job. Against this budget it’s most of a month’s allowance in one run. The mitigation was capping the weekly job at 2 workers instead of scaling on demand, which constrains how the ingestion pipeline can be designed.

NAT Gateway is the simplest case: a fixed cost of ~$32+/month just for being provisioned, with no free tier. No usage pattern makes it free. The only way to avoid the cost is to avoid the architecture that needs it, which is why Lambda in this stack runs without a VPC.

Engineering time

The most expensive item in this rebuild was time: making sure the AWS Step Functions state machine passed data correctly between steps, because DynamoUpdateItem and GlueStartJobRun tasks replace the entire state input with their own API response unless told otherwise:

# result_path=DISCARD is required: DynamoUpdateItem otherwise replaces
# the entire state input with its own AWS SDK response, wiping
# bucketName/s3Key/documentId/etc. before the next state ever reads them.
mark_processing = tasks.DynamoUpdateItem(
    self, "MarkProcessing",
    result_path=sfn.JsonPath.DISCARD,
    table=table,
    ...
)

This follows from choosing a serverless orchestration primitive (Step Functions) that fits the free-tier budget over a simpler always-on orchestrator that would have cost more per month and caused fewer integration surprises. The same trade shows up in choosing RUN_JOB over the default REQUEST_RESPONSE integration pattern for Glue, since the default pattern reports success the instant the job starts, not when it finishes:

run_ingestion = tasks.GlueStartJobRun(
    self, "RunDocumentIngestion",
    integration_pattern=sfn.IntegrationPattern.RUN_JOB,
    result_path=sfn.JsonPath.DISCARD,
    glue_job_name=document_ingestion_job.name,
    ...
)

A paid orchestration layer with better defaults might have handled both. With the free-tier primitive you find these out yourself, and that time belongs on the same ledger as the dollar figures above, even though nobody bills for it.

Still worth it

Free tiers are a good deal at this scale. For a personal or demo project, $0/month for the first 12 months and roughly $0-5/month after is a good outcome, and it doesn’t take heroics. But the free parts of the system still cost something, paid outside the invoice: an hour debugging a state machine, a smaller processing budget than the obvious design would use, or a fixed cost one misconfiguration away from arriving all at once. An honest budget counts those too.

Back to top