Logo

dev-resources.site

for different kinds of informations.

The Prius Effect for cloud costs

Published at
1/9/2021
Categories
aws
terraform
cloud
costs
Author
hassankhosseini
Categories
4 categories in total
aws
open
terraform
open
cloud
open
costs
open
Author
15 person written this
hassankhosseini
open
The Prius Effect for cloud costs

Over the last 10 years we have seen more enterprises give direct cloud access to their developers and DevOps teams. There are many ways this has been achieved, from giving admin logins to the cloud console, to having devs create request tickets to the central IT team, to creating a self-service catalogue in which business units can select what they need from a list of pre-approved resources or environments.

What ever model enterprises have chosen, one common thing happens. The cloud bill becomes less predictable. Someone didn't know what they were launching, they didn't turn it off, they didn't consider that when you create one resource, it will auto-create a bunch of other resources. As we shift left with Infrastructure as Code, and further with Serverless, in which code decisions have a direct impact on the cloud bill, we need a better answer than just policing what developers have access to and doing post-bill analysis.

Myself and my co-founders have been working in the cloud cost space for 10 years, and we now want to address this issue. Our theory is that if we give developers and DevOps engineers a clear picture of costs of their infrastructure before they launch, then they will be more mindful about what they launch. Think of it like The Prius Effect in which it was observed and documented that a large subset of Prius drivers would respond to the data on the dashboard by driving in a manner that decreased fuel consumption, but for cloud costs.

We launched infracost.io, an open source tool which looks at a terraform project and creates a cost estimate for the resources directly in the CLI:

The output of Infracost running directly in the CLI

You might say β€œdevelopers don't care about cloud costs since they don't pay for it”. I would say two things:

  1. The traction we have seen with Infracost indicates to us that this assumption might be false and that developers do care. They are just unaware of cost implications due to the complexities of cloud pricing models.
  2. If a developer doesn't care about cloud costs, what if we put Infracost in the CI pipeline so the cost implications can also be peer reviewed in the pull request? Will a single person in a team pull the cost efficiency up?

This is what Infracost looks like if you put it into the CI pipeline, a comment summarizes the percentage change in the cloud cost due to the changes in the terraform project, as well as a detailed breakdown:

Infracost explaining cloud costs in pull requests

Our Theory

We are working on validating this theory: can we get better cloud cost efficiency if we give developers clear visibility into potential cloud costs directly in their workflow with no added effort. I'd like to invite you to join this journey, and let's see if this theory is right or not.

  1. Install Infracost - it's free and open source.
  2. Write a blog, or a tweet about the impacts you see in the short, medium and long term. Do developers talk more about costs? Do they change their code? Are there comments in peer review process about costs? Do others suggest different resources to be used? What else are you seeing?
  3. Share the blogs with me, tag me in tweets etc, and I will collate all the results and write another blog with a summary and link to your results.

Cheers!

costs Article's
26 articles in total
Favicon
Breaking Down Salesforce Certification Fees in 2025
Favicon
The Biggest Cloud Scam
Favicon
Top Project Cost Estimation Software Solutions for Accurate Budgeting & More
Favicon
AWS Compute Savings Plans: Are They Right for You?
Favicon
Understand your Google Cloud Costs: Billing, Cost Management and Budgets
Favicon
The Hidden Costs of 'Cheap' Software Agencies: When Low Hourly Rates Lead to Sky-High Bills
Favicon
AWS Lambda pricing vs Google Cloud Functions pricing, explained
Favicon
Reduce Your Google Cloud Run Costs With These 2 Easy Tips!
Favicon
Control AWS costs with these 3 cost allocation tags
Favicon
AWS Compute Savings Plans: Are They Right for You?
Favicon
Understand your Google Cloud Costs: Billing, Cost Management and Budgets
Favicon
Keep AWS Costs down: 5 steps to start with on your infrastructure
Favicon
Can you automate Cloud Costs? Looking at InfraCost and alternatives
Favicon
Controlling Cloud Costs: Strategies for keeping on top of your AWS cloud spend
Favicon
Custos nas Nuvens
Favicon
How not to send all your money to AWS
Favicon
Reduce AWS costs: How I've saved $18,890 monthly on EBS drives?
Favicon
Cloudpouch - know your AWS costs!
Favicon
Optimization of environmental costs in Azure. Disks. #01
Favicon
Slack notifications on Azure budget consumption
Favicon
The Prius Effect for cloud costs
Favicon
AzureFunBytes New Episode Reminder - 10/1/2020 2 PM EDT - @Azure Subscriptions w/ @ExchangeGoddess
Favicon
How much are you paying to work remotely?
Favicon
CloudTrail S3 Glacier archival - It's a trap...
Favicon
The Law of Minimum Cost
Favicon
AWS Storage Costs

Featured ones: