Beyond Google: The Multi-Channel Playbook for Healthcare Marketers
Check it out
Login
Platform
Improve Marketing Performance
Drive growth without increasing budgets through better performance
Audiences
Smart, privacy-first targeting with lookalikes and retargeting lists
Healthcare Integrations
Bring full-funnel marketing to healthcare with 100+ integrations
Measure Marketing Impact
Prove marketing's value to unlock budget with real outcome data
Insights
One dashboard with every channel's performance and real ROI metrics
Ad Performance
Optimize for patient visits, not form fills, with attended appointment data
Protect Privacy & Compliance
Safeguard your marketing strategy from compliance disruption
Web Tracker Manager
See every tracker on your site and identify compliance risks
Consent Management
Consent that actually works by enforcing preferences at the data layer
Event Tracking
Measure what users actually do, not just what they view on your site
Healthcare Solutions
By Healthcare Vertical
By Use Case
Hospitals & Healthcare Systems
Payers
Urgent Care
Pharma & Med Devices
Orthopedics
Specialty Providers
DSO & Dental
Improve Marketing Performance
Measure Marketing Impact
Protect Privacy & Compliance
Customers
Get started / for customers
Login
Docs
Freshpaint Status
Partner Directory
Featured Healthcare Case Studies
Allergy Partners
Dropped Their CPL from $300 to $12
BU Dental
Optimized their digital marketing, reducing CPA by 30%.
Baptist Health
Journey to HIPAA-Compliant Digital Marketing
Explore all Case Studies
Product update
Freshpaint Audiences: Better ROI with Audience Targeting Built for Healthcare
Freshpaint Audiences gives healthcare marketers the power to run targeted ad campaigns that cut wasted spend, reach the right audience faster, stay fully privacy-compliant, and, most importantly, improve ROI.
Resources
Learn & Insights
Blog
Privacy Hub
FAQ
Prove your ROI
Marketing Hub
Events
Case Studies
Product update
Freshpaint Audiences: Better ROI with Audience Targeting Built for Healthcare
Freshpaint Audiences gives healthcare marketers the power to run targeted ad campaigns that cut wasted spend, reach the right audience faster, stay fully privacy-compliant, and, most importantly, improve ROI.
Plans & Pricing
Login
Book a Demo
Posted on 
October 12, 2020

Avoiding a Surprise AWS Bill

If you haven't set up billing alerts in your AWS account, I highly recommend you do so. Taking the five minutes to set up an alert likely saved us thousands or possibly even tens of thousands of dollars.

When first signing up for AWS back in January 2018, I wanted to set a monthly budget of $1000. At the time, I wasn't even thinking about avoiding a surprise bill. The only reason I set up a budget was to know when I should look into cutting costs. I figured any AWS bill below $1000/month wouldn't be worth optimizing, but, once we crossed that threshold, I would start digging into things and figure out what is going on. Anyways, I went into the AWS billing and cost management dashboard, set up an alert for when the bill for the month went over $950/month, and completely forgot about it.

On the evening of August 4th 2020, I received the following email:

When I first saw this email, I started panicking a little. It was only the fourth of the month and we had already spent over $1600! My first thought was that someone had somehow gained access to our AWS account and was using it to mine cryptocurrency or something. I quickly logged into my AWS account and looked at which services were costing us so much money:

I immediately saw we had spent almost $1500 on Amazon CloudWatch, Amazon's logging and metrics service. When I broke down the CloudWatch spend by usage type, I saw that the entire spend was made up of USW2-DataProcessing-Bytes—in other words, sending data into CloudWatch. Amazon charges $.50 per GB sent into CloudWatch.

When I pulled up the most recent CloudWatch logs, I immediately saw what was going on. Earlier in the day, I was debugging an issue and added a print statement to log every event that came through the Freshpaint backend. That print statement made its way into production and had generated multiple terabytes of logs, causing the $1500 increase in our AWS bill. I immediately removed the print statement and stopped sending so much data into CloudWatch.

Note: A $1500 AWS bill is bad, but it could have been a lot worse. As part of going through YC, we received $100k in AWS credits that expire after two years. Most likely, the credits are going to expire before we can use them, so the total cost of the outage to us was $0.

Preventing Similar Issues Going Forward

After resolving the problem, I started brainstorming ways to prevent similar issues going forward. It seems like there were two different factors that caused the charges:

  1. A print statement meant for debugging made its way into production.
  2. While we did have an alert that eventually caught the issue, we could have had an alert catch the issue much sooner.

To prevent debugging code from making it into production, we should have had a linter check for any fmt.Println statements. Anything actually intended to be logged in production should be logged with log.Println. This would have made a clear distinction between code that is intended for debugging purposes and code that is intended for logging purposes. We could easily run an automated linter to check there is no debugging code shipped to production before we deploy things.

As for the alerting, the only thing that saved us was that we had an alert for our entire AWS account. Instead of just one alert, we should have set up separate alerts for each AWS service. This way, if the bill for one service suddenly blows up, we will immediately know and be able to dig into it.

‍

Get Freshpaint in your email

If you want to learn how to be even more agile with customer behavioral data, join more than 3k+ others by signing up.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Michael Malis
Founder & CEO
view All Posts
Featured Posts
Hipaa Compliance
Direct Response, Remarketing, and Programmatic Advertising: The HIPAA Pitfalls You Didn't Know
Hipaa Compliance
IP Addresses and HIPAA Compliance: Unpacking the Risks for Healthcare Websites
Use Cases
Don't Remove It! Make Google Analytics HIPAA Compliant Instead
Hipaa Compliance
Staying HIPAA-Compliant: How to Detect Web Tracking Risks on Your Website
Hipaa Compliance
A Privacy-First Framework for HIPAA Compliance: Managing Third-Party Tracking on Healthcare Websites
Hipaa Compliance
Cut the Jargon: A Look at the FTC-HHS Privacy Warning and What It Means For Your Healthcare Org
Use Cases
How To Make Facebook Ads HIPAA Compliant and Still Get Conversion Tracking
Use Cases
What HHS Has to Say About Tracking Technologies in Latest HIPAA Guidance
Growth & Startups
Two Chairs Journey to a HIPAA Compliant Growth Stack
Stay Connected
Platform
Improve Marketing Performance
Audiences
Healthcare Integrations
Measure Marketing Impact
Insights
Ad Performance
Protect Privacy & Compliance
Web Tracker Manager
Consent Management
Event Tracking
Healthcare solutions
Hospitals & Health Systems
Health Tech & Virtual Care
Payers & Health Plans
Urgent Care & Outpatient
Dental & Specialty Practices
Pharma & Medical Devices
DSO (Dental Support Organizations)
Orthopedics
Specialty Providers
Resources
FAQ
Blog
Events & Webinars
Marketing Hub
Privacy Hub
Newsletter Signup
About
About Us & Careers
News & Press
Plans & Pricing
Contact Us
Get a Demo
Case Studies
Customers
Login
System Status
Docs
Follow Us
Privacy Policy
Terms of Service
© 2025 Perfalytics, Inc. Crafted in San Francisco - Site By Takeoff®