CAST AI now has free Cloud Native Security Insights for all clusters 🔒 Log in to get your report

Cloud Pricing Comparison: AWS vs. Azure vs. Google Cloud Platform in 2022

If you’re considering moving to the public cloud or optimizing the choice for your next project, picking between AWS, Azure, Google Cloud Platform, and Oracle can be a daunting task.

They all offer flexible compute, storage, and networking combined with everything engineers love about the cloud: self-service, instant provisioning, and autoscaling. 

But each provider differs in key areas that may have a massive impact on your cloud bill. 

Selecting one vendor over another comes down to knowing what your teams, applications, and workloads need. You need to fully understand your requirements before exploring the cloud landscape.

This article covers storage and compute pricing across AWS, Azure, and Google Cloud to show you the nuanced differences between these providers. 

Cloud landscape today: What are the unique strengths of AWS, Azure, and Google Cloud Platform?

AWS

Companies choose to build their applications on AWS because of its breadth and depth of services. The rich array of tools, including databases, analytics, management, IoT, security, and enterprise applications, makes AWS the right solution for many teams. No wonder AWS has the most significant slice of the cloud market.

Azure

Azure has slightly surpassed AWS in the percentage of enterprises using it (80% Azure vs. 77% AWS).1

Azure also offers various services for enterprises, and Microsoft’s longstanding relationship with this segment makes it an easy choice for some customers. Azure, Office 365, and Microsoft Teams enable organizations to provide employees with enterprise software while also leveraging cloud computing resources. 

Google Cloud Platform

Azure and AWS have strong machine learning capabilities. But Google Cloud Platform stands out thanks to its almost limitless internal research and expertise – the magic that has been powering the search engine giant throughout the years. 

What makes GCP different is its role in developing various open source technologies. We’re talking especially about containers and Google’s central role in building Kubernetes for orchestration and Istio service mesh, today practically industry-standard technologies. 

Google’s culture of innovation lends itself really well to startups and companies that prioritize such approaches and technologies.

Billing in AWS vs. Azure vs. Google Cloud Platform

In addition to per-minute billing, AWS, Azure, and Google Cloud support per-second billing for various services. AWS first introduced per-second billing in 2017 for EC2 Linux-based instances and EBS volumes – but today, it applies to many other services. 

Per-second billing works with a minimum 60-second limit in AWS. Azure allows per-second charges on its cloud platform, but this billing model isn’t available for all instances – mostly container-based ones. 

Google Cloud followed AWS in the introduction of per-second billing and now offers it for more than just instances based on Linux. This form of billing applies to all VM-based instances.

Cloud storage pricing comparison

How do these major cloud providers differ in terms of storage pricing? 

Here’s a comparison of prices in similar regions: AWS US East (Northern Virginia), Azure East US, and Northern Virginia (us-east4) in Google Cloud Platform.

Cloud providerStorage(GB/Month)
Amazon S3$0.023 
Azure$0.021 
Google Cloud Platform$0.023
Oracle Object Storage – Standard$0.0255

It’s clear that these cloud service providers compete closely with one another and have set similar price ranges for storage services, with Azure standing out as the most cost-effective alternative. However, be sure to check out other cost dimensions, such as data transfer or operations charges before picking the storage service.

Also, pay attention to the provider’s approach to pricing changes.

Google Cloud Platform recently introduced significant price increases across various core services around storage. Price hikes may affect other services and cloud providers considering the current challenges like inflation rates running high around the world and supply chain issues. 

Compute pricing comparison

Compute often ends up racking up a cloud bill, but it also presents the greatest opportunity for cost optimization.

We prepared this case study to show the incredible impact optimizing compute costs can have on your bottom line.

Comparing cloud pricing – our example setup

To understand the pricing differences better, we’re going to compare virtual machines within similar regions and with the same operating system.

The services analyzed are:

  • AWS – Amazon EC2
  • Azure – Virtual Machines
  • Google Cloud Platform – Compute Engine
  • Oracle – Virtual Machines 

Our example setup:

  • Region: AWS US East (Northern Virginia), Azure East US, and Northern Virginia (us-east4) in Google Cloud Platform.
  • Operating System: Linux. 
  • vCPUs: 4.

Types of instances/VMs we will analyze:

  • General purpose
  • Compute optimized

We picked instances with four vCPUs and similar RAM (the only exception is the compute optimized machine from Google Cloud Platform). 

Here are the instances/VMs we selected for our cloud pricing comparison:

Cloud providerInstance typevCPURAM (GB)
AWS general purposet4g.xlarge416
AWS compute optimizedc6a.xlarge48
Azure general purposeB4ms416
Azure compute optimizedF4s v248
Google Cloud Platform general purposee2-standard-4416
Google Cloud Platform compute optimizedc2-standard-4416
Oracle standardVM.Standard3.Flex416
Oracle optimizedVM.Optimized3.Flex48

AWS vs. Azure vs. Google Cloud Platform: Comparing On-Demand pricing 

Here’s the hourly On-Demand pricing of each of these virtual machines across AWS, Azure, and Google Cloud Platform.

Cloud pricing based on On-Demand rates

General purpose

Cloud providerInstance typePrice
AWSt4g.xlarge$0.1344
AzureB4ms$0.166
Google Cloud Platforme2-standard-4$0.150924
OracleVM.Standard3.Flex$0.1840

Compute optimized

Cloud providerInstance typePrice
AWSc6a.xlarge$0.153
AzureF4s v2$0.1690
Google Cloud Platformc2-standard-4$0.2351
OracleVM.Optimized3.Flex$0.2280

Takeaways:

  • While Azure is the most expensive choice for general purpose instances, it’s one of the most cost-effective alternatives to compute optimized instances.
  • Google Cloud Platform offers the highest price for compute optimized instances, but this machine has double the RAM of alternatives from AW, Azure, and Oracle. 

A note about chips and processors 

Providers roll out virtual machines with different hardware and performance characteristics. As a result, you might end up with an instance type that provides strong (and expensive!) performance your teams don’t actually need. 

Benchmarking is one way to see what you’re really paying for: you can run the same workload on each machine and check its performance characteristics. 

This approach might help you discover something interesting, just like we did. The chart below shows CPU operation in AWS (t2.2xlarge with eight virtual cores) at varying times after several idle periods. Would you expect such unpredictable CPU behavior within a single cloud provider?

AWS CPU behavior

Source: CAST AI

The 2022 Cloud Report from CockroachLabs used this method to evaluate AWS, Azure, and Google Cloud machines.2 One of their conclusions was that Google performs better than AWS and Azure. GCP instances occupied 6 out of 10 spots in the top 10 instances in price-for-performance.

AWS vs. Azure vs. Google Cloud: Comparing discounted pricing with a 1-year upfront commitment

All three providers offer price discounts if you commit to using them for at least one year. This pricing model is called Reserved Instances in AWS, Reserved Savings in Azure, and Committed use discounts in Google Cloud. 

The following tables compare the discounted pricing among AWS, Azure, and Google Cloud with a one-year commitment period with an all upfront payment.   

Cloud pricing with a 1-year commitment

General purpose

Cloud providerInstance typePriceDiscount
AWSt4g.xlarge$0.07941%
AzureB4ms$0.097441%
Google Cloud Platforme2-standard-4$0.09509263%
OracleVM.Standard3.Flex$0.156415%

Compute optimized

Cloud providerInstance typePriceDiscount
AWSc6a.xlarge$0.09438%
AzureF4s v2$0.1041%
Google Cloud Platformc2-standard-4$0.1315663%
OracleVM.Optimized3.Flex$0.193815%

Takeaways: 

  • The general-purpose instances with a 1-year commitment get a similar discount rate in AWS and Azure. Still, AWS offers a cheaper alternative.
  • In both general purpose and compute optimized instances, Google Cloud Platform offers the greatest discounts – still, it’s not the cheapest option. Note: the compute optimized GCP instance we picked has 16 GB RAM, not 8 GB like the other instances.

Take a look here if you’re unsure how Reserved Instances work and whether they really bring discounts: Do AWS Reserved Instances and Savings Plans really reduce costs?

Here’s how CPU bursting can drive your costs down 

All cloud providers in question offer burstable performance instances. These instances offer you a baseline level of CPU performance with the option to burst to a higher level whenever your workload requires that.

Burstable performance instances are suitable for low-latency interactive applications, microservices, small and medium databases, or product prototypes.

Our research into AWS burstable instances showed that if you load your instance for 4 hours or more per day on average, it’s better pick a non-burstable one for cost-effectiveness. However, if you run an e-commerce business that may receive a large stream of visitors once in a while, a burstable instance is often a good match.

AWS vs. Azure vs. Google Cloud: Comparing Spot Instances/Preemptible VMs

Another way to snatch some discounts and reduce your cloud bill is to take advantage of capacity that’s currently not being used by anyone else. Cloud providers sell excess capacity at incredible discounts. AWS Spot instances offer up to 90% off the On-Demand rates, Preemptible VMs in Google can be even 80% cheaper than regular ones.

Here’s a quick overview of the potential savings you can get for these instances in the US East (Northern Virginia) region:

Cloud pricing with Spot Instances/Preemptible VMs

General purpose

Cloud providerInstance typePriceDiscount
AWSt4g.xlarge$0.0403~30%
AzureA4 v2*$0.0638~67%
Google Cloud Platforme2-standard-4$0.045272~70%
OracleVM.Standard3.Flex$0.092050%
*Note that we changed the machine type to a similar one with 4 vCPU and 8 GB RAM. Why? Because Azure’s machines in Bs-series aren’t available as spot instances!

Compute optimized

Cloud providerInstance typePriceDiscount
AWSc6a.xlarge$0.06844%
AzureF4s v2$0.0259~85% 
Google Cloud Platformc2-standard-4$0.0540~77%
OracleVM.Optimized3.Flex$0.114050%

Takeaways:

  • There’s no denying that Azure offers the greatest discounts for both general purpose and compute optimized instances. The pricing of the compute optimized F4s v2 is very attractive.
  • Oracle offers Preemptible VMs at a flat 50% discount.

To take advantage of spot instances, you need to ensure that your application can handle interruptions. How? Here’s a step by step guide: Spot Instances: How to reduce AWS, Azure, and GCP costs by 90%

Optimizing cloud costs is a real-time activity

Spot instance prices may be different from one minute to the next. So we once decided to use our own platform to analyze our setup. We looked for the most cost-effective spot instance alternatives for a machine with 8 CPUs and 16 GB. 

CAST AI suggested that we run our workload on an instance called INF1. But this powerful GPU instance would usually cost a lot of money. So, why did CAST AI pick it? 

We checked the pricing and got this:

Spot instance pricing history

As it turned out, at that time, INF1 just happened to be cheaper than the usual general purpose instances we used. If we just stuck to our standard practices, we would have never guessed to look in this category and missed out on this incredible gem.

That’s why you need automation to optimize cloud costs

Even if you outsource the management of your cloud expenses to DevOps or FinOps specialists, you’re probably spending twice as much as you should. It’s high time you took control of your cloud bill with an automated solution.

CAST AI is a great place to start your path towards cost-cutting if your teams work with Kubernetes. The solution automatically creates and implements tactics for guaranteed savings without any manual and repetitive work for your engineers.

You can run a free cluster savings report and see the instance type and resource amount CAST AI would automatically implement if it managed your cluster.

Get your FREE
savings report

CAST AI Platform
  • Blog
  • Cloud Pricing Comparison: AWS vs. Azure vs. Google Cloud Platform in 2022

Leave a reply

13 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Peter
2022-05-06 6:27 AM

Google is providing at least 60% discount for their spot instances, you are saying it’s 24%/30%. Something seems to be really off here, you should double check that.
Just look for Spot VM and pricing, it’s easy to find.

Cheers

Allen CAST AI
2022-05-11 11:30 AM
Reply to  Peter

Thanks for pointing it out Peter, we fixed it!

Hemanth
2022-05-06 9:05 AM

Can you compare the Oracle Cloud too? Their pricing is aggressive compared to other players…

Allen CAST AI
2022-05-11 11:31 AM
Reply to  Hemanth

We added Oracle Cloud to the comparison. What did you mean by aggressive in this context though?

Joe Hahn
2022-05-06 7:41 PM

Oracle cloud is concise, complete, and quite cost effective. Please also include OCI when comparing clouds

Allen CAST AI
2022-05-11 11:31 AM
Reply to  Joe Hahn

Sure thing Joe, we have since added Oracle Cloud to the comparison.

Himanshu
2022-05-07 4:51 AM

Thanks for a useful comparison. I think you missed out one critical factor though, that of disaster recovery set-up cost. The DRS is a seldom, if ever, used functionality, but essential for most enterprises, particularly the regulated ones / in finance. One has to keep the DR ready with the same specs as the main, even if they would use hopefully never. And the cost with firewall and protections, etc. being practically fixed irrespective of DR being actioned could really hike the actual cloud cost drastically. I see none of the providers give a economically sensible pricing for the same.

Any thoughts?

Last edited 4 months ago by Himanshu
Allen CAST AI
2022-05-11 11:36 AM
Reply to  Himanshu

We had an option of very cost-efficient DR for Kubernetes that’s in active-active mode and capable of switching to another region or even cloud provider faster than anyone notices there’s trouble.
Not as many people were interested in such a solution, but if there’s a large scale application you have in mind, I’m sure someone in our team would love to talk it over with you and possibly suggest a solution.
You can book a call here: https://cast.ai/book-a-demo/
P.S. You have to be on Kubernetes for the mentioned above to work.

Judah
2022-05-09 11:56 AM

The hourly price I see for F4s v2 on the Azure website is $0.1690. It appears that your price above, $0.0846, is from the F2s v2 instance.

source: https://azure.microsoft.com/en-us/pricing/details/virtual-machines/windows/#pricing

Allen CAST AI
2022-05-11 11:36 AM
Reply to  Judah

Well spotted, thank you! We have fixed the data accordingly.

CloudStakes Technology
2022-05-13 8:18 AM

Great and awesome post.It is very helpful.

Amrit
2022-06-25 11:14 PM

Please add linode also

Anonymous
2022-08-18 10:59 AM

thanks for info

Recent posts

Are your workloads spot instance friendly?

Get the spot-readiness cheat sheet and quickly determine which of your workloads can reliably run on spot instances.

We may occasionally email you with cloud industry news and great offers.