Amazon ECS Pricing
Pricing overview
Amazon ECS is a fully managed container orchestration service that enables teams to build, manage, and run even the most demanding containerized workloads without the complexity of infrastructure management, freeing up development teams to innovate faster.
There is no additional charge for Amazon ECS orchestration. You pay only for the underlying compute and resources used to run your containerized applications.
Amazon ECS compute options
Amazon ECS charges depend on the compute option you choose—AWS Fargate, Amazon EC2, or AWS Outposts. With these options, there is no ECS management fee; you pay only for the underlying compute resources. For ECS Managed Instances, there is an additional management fee per instance for the operational management provided by AWS.
With AWS Fargate, you pay for the amount of vCPU, memory, and storage resources that your containerized application requests. Usage is calculated from the time your container images are pulled until the Amazon ECS Task terminates, rounded up to the nearest second. A minimum charge of one minute applies.
See detailed pricing information on the AWS Fargate pricing page.
You pay a management fee for Amazon EC2 instances launched and managed by ECS Managed Instances, in addition to standard EC2 instance charges. Both the ECS Managed Instances fee and EC2 charges are billed per-second, with a one-minute minimum, based on instance type and duration. See detailed pricing information on the Amazon ECS Managed Instances Pricing Page.
There is no additional charge for Amazon EC2 compute. You pay for AWS resources (such as Amazon EC2 instances, Amazon EBS volumes, or public IPv4 addresses) you create to run your application. You only pay for what you use, as you use.
See detailed pricing information on the Amazon EC2 pricing page.
Amazon ECS on AWS Outposts pricing is simple and works the same as it does in the cloud: the Amazon ECS control plane is in the cloud (not on Outposts) and your container instances run on the Outposts EC2 capacity at no additional ECS charge.
Please refer to the AWS Outposts pricing page for details on Outposts capacity pricing.
Details
|
Compute Mode
|
What You Pay For
|
ECS Service Fee?
|
Billing Granularity
|
|---|---|---|---|
|
AWS Fargate
|
vCPU + memory + ephemeral storage (optional) |
No separate ECS fee. Pay Fargate resource rates. |
Per-second (1 min min.) |
|
ECS Managed Instances
|
EC2 instance price + ECS Managed Instances management fee |
Yes — management fee per instance type |
Per-second (1 min min.) |
|
EC2
|
EC2 instances |
No separate ECS fee |
Per-second (1 min min.) |
|
ECS Anywhere
|
$0.01025 per registered on-premises instance/hour |
Yes — flat per-instance fee |
Per-hour (1 hr min.) |
|
ECS on AWS Outposts
|
Same as EC2. Control plane runs in cloud |
No separate ECS fee |
Per EC2 billing rules |
AWS Fargate
With AWS Fargate, there are no upfront costs and you pay only for the resources you use. You pay for the amount of vCPU, memory, and storage resources consumed by your containerized applications running on Amazon Elastic Container Service (ECS).
With AWS Fargate, you pay for the amount of vCPU and memory resources that your containerized application requests. vCPU and memory resources are calculated from the time your container images are pulled until the Amazon ECS Task terminates, rounded up to the nearest second. A minimum charge of one minute applies. You do not need to choose, purchase, or manage server instances. Fargate handles the underlying infrastructure automatically.
Pricing Details
Pricing is based on requested vCPU, memory, Operating Systems, CPU Architecture1, and storage resources for the Task or Pod. The five dimensions are independently configurable.
1 Windows Operating System and ARM CPU Architecture are currently only available for Amazon ECS.
-
Linux/X86
-
Linux /ARM
-
Windows/X86
-
Linux/X86
-
-
Linux /ARM
-
-
Windows/X86
-
Note: Each Fargate task receives 20 GB of ephemeral storage at no additional charge. Additional storage above 20 GB, up to a maximum of 200 GB, is charged at the rate above. Windows Operating System and ARM CPU Architecture are currently only available for Amazon ECS.
Fargate Spot Pricing
Fargate Spot allows you to run interruption-tolerant Amazon ECS tasks at a discount of up to 70% compared to Fargate On-Demand rates. Fargate Spot uses spare Fargate capacity and can be interrupted with a 2-minute warning when AWS needs the capacity back. It is ideal for fault-tolerant, flexible workloads such as batch processing, data transformation, or CI/CD pipelines.
Fargate Spot prices fluctuate based on available capacity. Current spot prices by region are available on the AWS Fargate pricing page. You specify your capacity provider strategy in your ECS service or task definition to mix On-Demand and Spot capacity.
-
Spot Linux/X86
-
Spot Linux/ARM
-
Spot Linux/X86
-
-
Spot Linux/ARM
-
* Fargate Spot for Amazon ECS is currently only available for Linux Operating System and x86 /ARM CPU Architecture.
Fargate Ephemeral Storage Pricing
20 GB of ephemeral storage is available for all Fargate Tasks and Pods by default—you only pay for any additional storage that you configure.
Supported Configurations
| CPU
|
Memory Values |
|---|---|
| 0.25 vCPU | 0.5 GB, 1 GB, and 2 GB |
| 0.5 vCPU | Min. 1 GB and Max. 4 GB, in 1 GB increments |
| 1 vCPU | Min. 2 GB and Max. 8 GB, in 1 GB increments |
| 2 vCPU | Min. 4 GB and Max. 16 GB, in 1 GB increments |
| 4 vCPU | Min. 8 GB and Max. 30 GB, in 1 GB increments |
| 8 vCPU | Min. 16 GB and Max. 60 GB, in 4 GB increments |
| 16 vCPU | Min. 32 GB and Max. 120 GB, in 8 GB increments |
| 32 vCPU | 60 GB, 120 GB, and 244 GB |
Savings Plans apply to Fargate vCPU and memory charges. Spot discounts apply to the entire Fargate task cost. These options can be combined: use Savings Plans for baseline capacity and Spot for burst/flexible workloads.
Compute Savings Plans for Fargate
Compute Savings Plans provide the most flexibility and help reduce your costs by up to 52% in exchange for a 1-year or 3-year hourly spend commitment. The plan applies automatically across EC2 instance usage and Fargate usage, regardless of instance family, size, OS, tenancy, or AWS Region.
| Purchase Options | Commitment Term | Typical Discount vs. On-Demand | |
|---|---|---|---|
| Compute Savings Plan | 1 Year | Up to ~17–26% | |
| Compute Savings Plan | 3 Years | Up to ~52% | |
| Fargate Spot | No commitment | Up to 70% (variable, spot market) |
Pricing Examples
All examples below are based on price in US East (N. Virginia).
-
Example 1
Let’s say your service uses 5 ECS Tasks that run for 10 minutes (600 seconds) every day for a month (30 days) during which each ECS Task uses 1 vCPU, 2GB memory, and 30 GB ephemeral storage. Using the Linux/X86 pricing for US East (N. Virginia) Region where CPU cost: $0.000011244 per vCPU second, memory cost: $0.000001235 per GB per second, and ephemeral storage cost: $0.0000000308 per GB per second
Monthly CPU charges
Total vCPU charges = (# of Tasks) x (# vCPUs) x (price per CPU-second) x (CPU duration per day by second) x (# of days)
Total vCPU charges = 5 x 1 x 0.000011244 x 600 x 30 = $1.01Monthly memory charges
Total memory charges = (# of Tasks) x (memory in GB) x (price per GB) x (memory duration per day by second) x (# of days)
Total memory charges = 5 x 2 x 0.000001235 x 600 x 30 = $0.22Monthly ephemeral storage charges
Total ephemeral storage charges = (# of Tasks) x (additional ephemeral storage in GB) x (price per GB) x (memory duration per day by second) x (# of days)
Additional ephemeral storage in GB: 30 - 20 = 10
Total ephemeral storage charges = 5 x 10 x 0.0000000308 x 600 x 30 = $0.03Monthly Fargate compute charges
Monthly Fargate compute charges = (monthly CPU charges) + (monthly memory charges) + (monthly ephemeral storage charges)
Monthly Fargate compute charges = $1.01 + $0.22 + $0.03 = $1.26 -
Example 2
Let’s say your service runs on Arm-based AWS Graviton2-powered Fargate to optimize on price-performance. The service uses 5 ECS Tasks for 10 minutes (600 seconds) every day for a month (30 days) during which each ECS Task uses 1 vCPU, 2GB memory, and 30 GB ephemeral storage. Using the pricing for Linux/ARM in US East (N. Virginia) Region where CPU cost: $0.0000089944 per vCPU second, memory cost: $0.0000009889 per GB per second, and ephemeral storage cost: $0.0000000308 per GB per second.
Monthly CPU charges
Total vCPU charges = (# of Tasks) x (# vCPUs) x (price per CPU-second) x (CPU duration per day by second) x (# of days)
Total vCPU charges = 5 x 1 x 0.0000089944 x 600 x 30 = $0.81Monthly memory charges
Total memory charges = (# of Tasks) x (memory in GB) x (price per GB) x (memory duration per day by second) x (# of days)
Total memory charges = 5 x 2 x 0.0000009889 x 600 x 30 = $0.18Monthly ephemeral storage charges
Total ephemeral storage charges = (# of Tasks) x (additional ephemeral storage in GB) x (price per GB) x (memory duration per day by second) x (# of days)
Additional ephemeral storage in GB: 30 - 20 = 10
Total ephemeral storage charges = 5 x 10 x 0.0000000308 x 600 x 30 = $0.03Monthly Fargate compute charges
Monthly Fargate compute charges = (monthly CPU charges) + (monthly memory charges) + (monthly ephemeral storage charges)
Monthly Fargate compute charges = $0.81 + $0.18 + $0.03 = $1.02 -
Example 3
For example, your service uses 10 ECS Tasks running Windows for 1 hour (3600 seconds) every day for one month (30 days), where each ECS Task uses 1 vCPU and 2GB memory.
Monthly CPU charges
Total vCPU charges = (# of Tasks) x (# vCPUs) x (price per CPU-second) x (CPU duration per day by second) x (# of days)
Total vCPU charges = 10 x 1 x 0.0000254167 x 3600 x 30 = $27.45Monthly Windows OS charges
Total memory charges = (# of Tasks) x (# vCPUs) x (OS price per CPU-second) x (CPU duration per day by second) x (# of days)
Total Windows OS charges = 10 x 1 x 0.0000127778 x 3600 x 30 = $13.80Monthly memory charges
Total memory charges = (# of Tasks) x (memory in GB) x (price per GB) x (memory duration per day by second) x (# of days)
Total memory charges = 10 x 2 x 0.0000027778 x 3600 x 30 = $6.00Monthly Fargate compute charges
Monthly Fargate compute charges = (monthly CPU charges) + (monthly Windows OS charges) + (monthly memory charges)
Monthly Fargate compute charges = $27.45 + $13.80 + $6.00 = $47.25
Amazon ECS Managed Instances
Amazon ECS Managed Instances is a fully managed compute option that gives you the application performance you want with the operational simplicity you need. ECS Managed Instances automatically provision, manage, and scale EC2 instances within your ECS cluster, handling patching and lifecycle management on your behalf. You retain full visibility into the EC2 instances in your account and can apply your existing EC2 Reserved Instances or Savings Plans.
With Amazon ECS Managed Instances, you pay two separate charges:
1. EC2 instance price — the standard Amazon EC2 price for the instance type you launch, based on your chosen purchase option: On-Demand, Reserved Instances, Compute Savings Plans, or Spot.
2. ECS Managed Instances management fee — a per-instance management fee that applies regardless of your EC2 purchase option.
Both charges are billed per second with a one-minute minimum.
Pricing Details
Amazon ECS Managed Instances — Pricing Example
You are looking to run a containerized application on Amazon ECS. You choose ECS Managed Instances to reduce the operational overhead of managing EC2 infrastructure while retaining full control over your cluster.
Let's say your application consists of three ECS tasks, or sets of containers, one that delivers a web-based front end user interface to end-users which needs 0.5 vCPU and 1GB of memory, another that is responsible for the backend of the web application which needs 2 vCPU and 5GB of memory, and another that runs periodic batch data processing jobs which needs 1 vCPU and 8 GB of memory. On average, you expect the frontend to need 6 tasks to meet demand, the backend to need 10 tasks, and 2 data processing tasks. Except for the batch data processing tasks, each task is also configured to run across a minimum of two Availability Zones, for high-availability.
You deploy your application in the US West (Oregon) region. ECS Managed Instances determines that the most cost-effective EC2 instances to meet your application's needs are a mix of c6a.2xlarge, c6a.4xlarge, m5a.2xlarge, and m5a.xlarge. ECS Managed Instances charges a management fee that varies based on the EC2 instance type launched, in addition to your regular EC2 instance costs. Below table shows the total costs for ECS Managed Instances, including the regular EC2 instance costs, for each hour and each month your application runs:
| Instance Types | Qty | EC2 Instance | ECS Managed Instances |
|---|---|---|---|
| c6a.2xlarge | 1 |
$0.306 |
$0.037 |
| c6a.4xlarge | 1 |
$0.612 |
$0.073 |
| m5a.2xlarge | 1 |
$0.344 |
$0.041 |
| m5a.xlarge | 1 |
$0.172 |
$0.021 |
| Total per Hour |
$1.434 |
$0.172 | |
| Total per Month |
$1,046.82 |
$125.62 |
The ECS Managed Instances management fee is separate from and independent of the EC2 purchase option you choose. Both charges are billed per second with a one-minute minimum.
Next Steps & Resources
| Resource | Description | URL |
|---|---|---|
| AWS Pricing Calculator | Estimate monthly ECS costs by compute option, task count, vCPU/memory, and region |
calculator.aws |
| ECS Pricing Page | Official current ECS pricing page with all launch types |
aws.amazon.com/ecs/pricing |
| Fargate Pricing Page | Detailed Fargate pricing by region including Windows, ARM (Graviton), and GPU configurations |
aws.amazon.com/fargate/pricing |
| ECS Managed Instances Pricing | Per-instance-type management fee rate card |
aws.amazon.com/ecs/managed-instances/pricing |
| ECS Anywhere Pricing | On-premises instance pricing and FAQ |
aws.amazon.com/ecs/anywhere/pricing |
| AWS Outposts Pricing | Capacity reservation pricing for Outposts racks |
aws.amazon.com/outposts/pricing |
| AWS Cost Explorer | Analyze your actual AWS spend and usage patterns |
console.aws.amazon.com/cost-management |
| Contact Sales | Enterprise pricing discussions, reserved capacity negotiations, or Outposts quotes |
aws.amazon.com/contact-us |
Disclaimer
Prices listed in this document are for informational purposes and reflect US East (N. Virginia) On-Demand rates as of the document creation date. AWS prices are subject to change. Always verify current pricing at aws.amazon.com before making purchasing decisions. This document consolidates content from the official AWS ECS, Fargate, ECS Managed Instances, ECS Anywhere, and AWS Outposts pricing pages