Discover how CloudZero helps engineering and finance get on the same team — and unlock cloud cost intelligence to power cloud profitability
Learn moreDiscover the power of cloud cost intelligence
Give your team a better cost platform
Give engineering a cloud cost coach
Learn more about CloudZero and who we are
Learn more about CloudZero's pricing
Take a customized tour of CloudZero
Explore CloudZero by feature
Build fast with cost guardrails
Drive accountability and stay on budget
Manage all your discounts in one place
Organize spend to match your business
Understand your cloud unit economics and measure cost per customer
Discover and monitor your real Kubernetes and container costs
Measure and monitor the unit metrics that matter most to your business
Allocate cost and gain cost visibility even if your tagging isn’t perfect
Identify and measure your software COGS
Decentralize cost decisions to your engineering teams
Automatically identify wasted spend, then proactively build cost-effective infrastructure
Monitor your AWS cost and track progress in real-time as you move to the cloud
CloudZero ingests data from AWS, GCP, Azure, Snowflake, Kubernetes, and more
View all cost sourcesDiscover the best cloud cost intelligence resources
Browse helpful webinars, ebooks, and other useful resources
Discover the best cloud cost intelligence content
Learn how we’ve helped happy customers like SeatGeek, Drift, Remitly, and more
Check out our best upcoming and past events
Gauge the health and maturity level of your cost management and optimization efforts
Compare pricing and get advice on AWS services including EC2, RDS, ElastiCache, and more
Learn moreDiscover how SeatGeek decoded its AWS bill and measures cost per customer
Read customer storyLearn how Skyscanner decentralized cloud cost to their engineering teams
Read customer storyLearn how Malwarebytes measures cloud cost per product
Read customer storyLearn how Remitly built an engineering culture of cost autonomy
Read customer storyDiscover how Ninjacat uses cloud cost intelligence to inform business decisions
Read customer storyLearn Smartbear optimized engineering use and inform go-to-market strategies
Read customer storyAmazon ECS pricing depends on whether you use Amazon EC2 instances or AWS Fargate to launch and run your containerized applications. Here’s how it works.
With containerization, you can write an application once and run it anywhere. Along with portability, containers are also much more resource-efficient than traditional virtual machines (VMs). However, managing containers at scale can be challenging.
Besides, many teams find container orchestration platforms like Kubernetes overkill and too complex.
By providing a managed container platform, Amazon Elastic Container Service (Amazon ECS) offers an alternative to building, configuring, and managing your own containerization infrastructure.
But is ECS pricing worth it? This Amazon ECS pricing guide will answer that question — as well as cover ECS pricing in detail.
Table of Contents
Amazon ECS delivers a managed container orchestration service within the Amazon Web Services (AWS) public cloud. You can run thousands of containers with your favorite Continuous Integration and Continuous Delivery (CI/CD) tools securely and scalably.
Also, you can integrate ECS with AWS Fargate serverless computing. This eliminates the need to configure and manage control planes, instances, and nodes yourself.
AWS promises to save you up to 50% on compute costs by utilizing autonomous scaling, provisioning, and usage-based pricing. AWS ECS Anywhere also lets you build, deploy, and orchestrate container-based applications on-premises and in the cloud.
In addition, ECS provides access to the performance, scalability, and availability of the AWS public cloud, including Amazon EC2 instances, Spot pricing, and serverless computing via AWS Fargate.
To help you understand what you're paying for and how to optimize it, here's how ECS prices these capabilities.
Amazon’s Elastic Container Service lets you pay for the resources you create to run your application. Those resources include Amazon Elastic Compute Cloud (Amazon EC2) instances, Amazon Elastic Block Store (Amazon EBS), etc.
You won't pay anything extra for ECS beyond what you'd pay for EC2 instances, Fargate vCPUs, EBS storage volumes, data transfers outside AWS, etc.
ECS also enables you to pay for what you use, while you use it. The service does not require you to sign a minimum usage contract, pay upfront fees, or provision resources. It’s a pay-as-you-go pricing model.
So how does Amazon ECS billing really work? Well, here’s how ECS calculates your bill.
Amazon ECS billing follows two models:
However, the two charge models apply to four use cases: Amazon EC2 launch type, AWS Fargate launch type, Amazon ECS on AWS Outposts (on-premises), and Amazon ECS Anywhere (hybrid cloud). Here’s how it works.
You won’t pay extra for deploying and running containers with EC2 instances. Your only cost is for the underlying EC2 instances and Amazon EBS storage volumes you need to run your application.
In addition, this launch type enables you to choose from five types of EC2 instances:
Here are some things to keep in mind when using Amazon ECS with Amazon EC2:
Whether you are configuring your EC2 or ECS environment for optimal performance or cost savings, CloudZero Advisor can help you to compare instance types, sizes, and prices. It provides insights based on factors such as AWS services, resource types, AWS regions, pricing, and instance types. Visit CloudZero Advisor to learn more.
A similar pricing model applies to AWS Outposts.
AWS Outposts provides a fully managed service that enables you to leverage AWS cloud infrastructure, APIs, services, and tools to your on-premises setup. You get to launch your EC2 instances and manage applications on AWS Outposts through the AWS console, Command-Line Interface or SDK as you would in the public cloud.
Note that the ECS control plane is in the cloud — not on Outposts.
Also, you pay for the EC2 instance types, Amazon S3 usage, and Amazon EBS gp2 volume you use to run container instances.
The actual charges you’ll pay depend on the specific AWS Outposts configuration option you choose, which pool resources together, among them EC2 instances, and EBS volumes and Amazon S3. That pricing includes the cost of installation, upgrades, delivery, infrastructure service maintenance, and software patches.
One more thing. There are three payment options available when purchasing Outposts rack capacity over a three-year period:
Your Outposts rack capacity will become available for launching instances 24 hours after installation. That’s when any monthly or up front charges begin to apply.
You can find the most up-to-date AWS Outposts rack pricing here and AWS Outposts servers pricing here.
With this option, you can launch and deploy containerized applications on your own infrastructure (on-premises) using an in-region ECS control plane. ECS Anywhere is an extension of Amazon ECS that’s ideal for you if you have significant investments in your data center already and specific compliance or regulatory obligations that require you to own and operate your infrastructure.
With Amazon ECS Anywhere, workload scheduling, cluster management, and monitoring work the same way in the AWS cloud and on your own infrastructure (on-premises).
There are no upfront commitments or minimum fees required. You only pay for running instances that ECS Anywhere manages. Pricing is $0.01025 per hour for every managed ECS Anywhere on-premises instance. Each of these instances are self-managed and need to be registered as part of an Amazon ECS cluster and be running the Amazon ECS container agent.
ECS Anywhere billing is based on the duration that the instance you register to an Amazon ECS cluster is connected to the ECS control plane, calculated to the nearest second. Deregistering, shutting down, or terminating an on-premises instance stops the billing.
Oh, another thing. You will also have to pay for the AWS Systems Manager Agent (SSM Agent). Amazon ECS Anywhere requires it to verify and register your on-premises instances. You may need to pay up, more so when you have over 1,000 instances per account per region at any given time.
How does launching ECS containers with AWS Fargate compare?
You won't have to pay anything up front here. You only pay for the amount of virtual CPU, RAM, and storage capacity that your containerized applications use when running on the Amazon Elastic Container Service (ECS).
AWS Fargate calculates your costs from the time you start to download a Docker container image until you complete the ECS task, rounded off to the nearest second. There’s also a one minute minimum requirement (15 minutes for Windows).
Specifically, pricing for ECS with AWS Fargate depends on the following configurable components:
Note that you can use Spot instances and Savings Plans with AWS Fargate.
Fargate Spot pricing for Amazon ECS can get you up to 70% off the regular On-Demand rate (starts at $0.012144 per vCPU/hour and $0.0013335 per GB of RAM/hour in the US East (Ohio) region), provided you use a Linux OS and X86 CPU architecture.
Savings Plans for Amazon ECS Compute offer discounts of up to 50% on AWS Fargate usage if you commit to using a certain amount of compute (measured in dollars per hour) for the duration of one or three years.
Pricing for AWS Fargate Launch type is costlier per hour than the Amazon EC2 Launch type. However, not only does the AWS Fargate Launch type require less management than the EC2 Launch type, but it also automatically shuts down an ECS task when it completes so that an idle task does not accrue further costs.
You can improve the portability, scalability, resilience, and resource efficiency of your applications through containerization. However, the distributed nature of containers and their high scalability can create cost blindspots.
If cost efficiency is important to your Docker container system on AWS (Amazon ECS), CloudZero offers you the tools you need to understand why, what, and who are driving your Amazon ECS costs.
CloudZero empowers you to:
Here are answers to some frequently asked questions about Amazon ECS pricing.
You pay for only what you use for Amazon ECS.
No. There are no additional fees. Instead, you pay for the resources you use to launch and run your containerized applications, such as Amazon EBS volumes, EC2 instances, and Amazon S3 buckets.
Both ways to launch and run containers on Amazon ECS are fully managed. However, the AWS Fargate launch type is serverless and requires minimal self-management once you configure your instances. By contrast, the EC2 launch type is mainly self-managed with the exception of container orchestration, which AWS handles.
AWS Outposts enables you to use fully managed AWS infrastructure, APIs, services, and tools to virtually any on-premises data center, hybrid cloud, or edge computing strategy. The difference is that ECS Anywhere uses an in-region Amazon ECS control plane and streamlines software and compliance management.
CloudZero is the only solution that enables you to allocate 100% of your spend in hours — so you can align everyone around cost dimensions that matter to your business.