Skip to main content

AWS Free Tier and a Packer Tutorial

· 2 min read

Background​

When I was learning AWS from a YouTube playlist, I built a VPC across two Availability Zones with several subnets. The private subnets used NAT gateways. The course never mentioned that NAT gateways were outside the Free Tier. The two gateways cost me about $6 in a couple of days. That stung, so I set up a billing alarm.

#!NOTE

Here's the ADV-IT course.

What happened​

I had recently been learning to build artifacts with Packer. After experimenting on AWS, I deleted all the AMIs in the relevant region through the console and moved on.

A week later I saw another email from AWS. My personal Gmail sometimes gets billing reports from them, usually empty, and invitations to re:Invent.

alert

I'd used 85% of my Free Tier allowance for EBS snapshots.

info

The AWS Free Tier page lists the monthly allowances for each resource.

It turns out Packer had created these snapshots alongside the AMIs.

snapshots

Lessons learned
  • Start by setting up a non-root identity. Then set up billing alerts. I'd pick a 50% threshold because I burned through my allowance fast.
  • If you're writing a tutorial, call out which resources fall outside the Free Tier and which have tight limits.

Comments and reactions