How-to guide

Cut Windows and SQL Server license costs on AWS

Learn how to cut Windows Server and SQL Server license costs on AWS by choosing the right host model, edition, and billing option.

By the Cloudverg engineering team · · 8 min read

Why this matters

Windows Server and SQL Server change the math of an AWS bill more than almost anything else you run. Both carry a license on top of the compute. On EC2 that license is bundled into the hourly rate of certain instance types. On RDS and RDS Custom it shows up in the instance price and in the number of cores you pay for. Two teams can run the same workload and face very different bills because of choices made at build time rather than at usage time.

The trap is that license cost hides inside the compute price. A db.r6i.2xlarge looks like one number on the invoice, but part of it is SQL Server. You cannot shrink that part by being careful with queries, because you pay for the licensed cores whether they sit idle or not. The fixes are structural: change the host model, change the edition, change how you buy the compute, or change how many cores you expose to the database.

This guide covers the decisions you can make in a normal week: moving to License Included or Bring Your Own License, checking whether Standard edition covers the workload, buying Savings Plans against the right instance families, and matching core counts to actual load. It also covers Dedicated Hosts and the checks that tell you whether a change actually landed. It does not cover general tagging or budget alert setup, which other guides handle.

Before you start

Pull the last three months of bills and separate the line items by service: EC2, RDS, RDS Custom, EKS, and any Marketplace software. EC2 shows Windows and SQL under the instance usage line, so use the Cost Explorer grouping by instance type to see which families you actually run. Write down the instance type, engine, edition, and vCPU count for every database and Windows host. That list is your working sheet.

Check whether you have Microsoft licenses you can bring. If you bought SQL Server or Windows Server through a volume agreement with Software Assurance, the Volume Licensing terms may allow License Mobility to a shared host, which is what lets you run BYOL on AWS. Confirm the terms with whoever owns that agreement before you plan around it. If you have no such agreement, License Included is your baseline and the job is to buy it more cheaply, not to replace it.

Decide which workloads are production and which are not. Non-production Windows and SQL instances can often use older instance generations, smaller sizes, or a stopped schedule. Also check your support boundary: Microsoft support for SQL Server on AWS depends on whether you run on License Included, BYOL with Software Assurance, or on a Dedicated Host. Mixing models inside one application stack makes support conversations harder.

Finally, note your current commitments. If you already hold EC2 Instance Savings Plans, they cover the compute portion of Windows and SQL instances in the same family and Region, but not the license portion when you are on License Included. Read the Savings Plans details before you assume a new commitment will discount the license. It usually will not.

How to do it

Start with the host model, because it sets the ceiling on everything else. License Included means AWS bundles the license into the price, and you pay for it every hour whether the instance runs or not. BYOL means you supply the license and pay only for the host. BYOL needs eligible licenses, and for SQL Server it usually needs a Dedicated Host or a host resource group to satisfy Microsoft's licensing rules. On a Dedicated Host you pay for the whole physical host, so it only wins when you fill it with enough licensed cores.

Next, look at edition. SQL Server Standard covers a lot of line-of-business workloads, and the price gap to Enterprise on the same instance size is large. Features like Always On availability groups without a cluster, partitioned table parallelism, and some compression options are Enterprise only. Check which of those your application actually uses before you pay for them. If you run Standard and need high availability, Basic Availability Groups in Standard may be enough. Test the workload on Standard in a staging environment first.

Then work the billing side. For License Included, buy Compute Savings Plans or EC2 Instance Savings Plans for the compute part, and size the commitment to the steady state of the instances you keep running. For BYOL on Dedicated Hosts, the savings question is different: you want high utilization of the host, so consolidate databases onto fewer hosts rather than spreading them. For RDS, check whether a smaller instance class with more memory per core fits, since RDS license cost scales with vCPU count on the instance class.

Finish with the details that quietly add cost. Windows hosts pay for the license on every running hour, so stop dev and test boxes. Check that you are not paying for SQL Server on instances that only need a file share. Look at storage and backup charges attached to the database, since snapshots and provisioned IOPS can rival the instance cost. And check whether a workload can move to Aurora, PostgreSQL, or Linux with a rewrite, because that removes the license entirely.

  1. Inventory licensed hosts. List every Windows and SQL Server instance with its type, engine, edition, vCPU count and environment. Use the Cost Explorer instance type grouping to catch anything your team forgot.
  2. Confirm license eligibility. Check whether your Microsoft agreement allows License Mobility and Software Assurance. Get the owner of the agreement to confirm the terms for each workload before you plan a BYOL move.
  3. Pick the host model per workload. Choose License Included for small or spiky workloads and BYOL on Dedicated Hosts for large steady ones. Model the full host cost against the licensed cores you will actually fill.
  4. Test the lower edition. Run the workload on SQL Server Standard in staging and confirm it does not use Enterprise-only features. Measure memory and CPU headroom on the smaller instance class.
  5. Right-size the instance class. Compare vCPU count to actual CPU use and memory working set. Move to a class with fewer cores where memory allows, since RDS license cost follows the class.
  6. Layer commitments on compute. Buy Compute or EC2 Instance Savings Plans for the steady-state compute, scoped to the families and Region you run. Leave room for growth so utilization stays high.
  7. Schedule non-production. Stop dev and test Windows and SQL instances outside working hours. Use instance scheduler tags and confirm the stop actually releases the license hour.
  8. Review host utilization monthly. Open the Dedicated Hosts page and check allocated cores against host capacity. Consolidate databases onto fewer hosts when utilization drops.

How to check it worked

Re-run the Cost Explorer grouping you used at the start, this time filtered to the instance families you changed. Compare the license portion of the bill, not the total, because total spend moves with traffic. On EC2, the savings from moving to BYOL show as a lower effective hourly rate for the same instance type. On RDS, a move to a smaller instance class shows as a new line item with a lower per-hour charge.

Check utilization on any Dedicated Hosts. In the AWS console, the Dedicated Hosts page shows how many instances and how many cores are allocated to each host. If a host is half full, you are paying for idle licensed capacity and should consolidate. Set a review on that page, because hosts do not shrink on their own.

Verify that commitments are actually applying to the instances you expect. In the Savings Plans section of the Billing console, check utilization and coverage. A plan that covers 60 percent of your eligible compute still leaves the rest at on-demand rates. Also confirm the plan is scoped to the right family and Region, since a plan bought for one family will not discount another.

Finally, test a restore and a failover after any edition or host change. License changes often come with instance class changes, and a smaller class may not have the memory headroom for a large restore. Run a real restore into the new shape and time it. If the plan depends on Basic Availability Groups, fail over once and confirm the application reconnects.

Mistakes to avoid

The most common mistake is buying a Savings Plan and assuming it discounts the Windows or SQL license. It does not, when the license is bundled into the instance price. You commit to the compute and the license rides along at the same rate. Read the plan scope before you sign, and model the discount against the compute-only portion.

Another is running BYOL without the licensing paperwork in order. License Mobility has conditions, and SQL Server on shared tenancy generally requires a Dedicated Host or host resource group. If the terms are not met, you can end up paying for licenses you cannot legally use on that host. Get the agreement owner to confirm in writing before you migrate.

Teams also over-provision cores for SQL Server. RDS license cost scales with the instance class vCPU count, so a class chosen for memory can carry cores you never use. Check whether a memory-optimized class with fewer vCPUs covers the working set. On EC2, you can limit the cores SQL Server sees, but the license terms and the instance price still follow the host, so do the math rather than assuming.

Leaving non-production running is the quiet one. Dev and test Windows and SQL instances burn license hours around the clock. Put a stop schedule on them, or move them to smaller instances. If you want a structured review, the Cloudverg Cloud cost audit at $4,500/month is one option among others: a two-week read-only review that ranks every saving by dollars per month, including license lines.

Frequently asked questions

Does a Savings Plan discount Windows Server or SQL Server licenses on AWS?

It discounts the compute portion, not the bundled license when you use License Included. The license rides along at the same effective rate. Read the plan scope and model the discount against compute only.

Can I bring my own SQL Server license to AWS?

Yes, if your Microsoft agreement allows License Mobility through Software Assurance. SQL Server on shared tenancy usually requires a Dedicated Host or host resource group. Confirm the terms with the owner of the agreement first.

Is SQL Server Standard edition enough for most workloads?

For many line-of-business applications it is. Standard lacks some Enterprise features such as certain compression and parallelism options. Test the workload on Standard in staging before you commit to the switch.

Why is my RDS for SQL Server bill higher than the instance size suggests?

The instance price includes the SQL Server license, which scales with the vCPU count of the instance class. Backups, storage and provisioned IOPS add more. Check the class against actual CPU and memory use.

Monthly plan

Want help with this? Cloud cost audit

$4,500/month

2 weeks · Starts within 10 business days

A two-week, read-only review of your AWS, Azure, Google Cloud or Oracle bill, with every saving ranked by dollars per month.

Renews monthly. Cancel any time.
What is included

Related guides

More cloud costs guides   Cloud cost audit

Smallest way to start

Get a senior architect on your problem this week

Ninety minutes a month on the cloud, AI or security question that is blocking you, a pre-read of your material and a written summary within two business days.

$450/month

Renews monthly. Cancel any time.