With AWS Fargate, there are no upfront payments and you only pay for the resources that you use. You pay for the amount of vCPU and memory resources consumed by your containerized applications.
AWS Fargate Pricing
AWS Fargate pricing is calculated based on the vCPU and memory resources used from the time you start to download your container image until the Amazon ECS Task or Amazon EKS* Pod terminates, rounded up to the nearest second.
* See the regions where EKS/Fargate is available https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/
Pricing Details
Pricing is based on requested vCPU and memory resources for the Task or Pod. The two dimensions are independently configurable.
Fargate Spot Pricing for Amazon ECS
Compute Savings Plan for Amazon ECS & Amazon EKS
Take advantage of Savings Plans if you have steady state Fargate usage. Savings Plans offers savings of up to 50% on your AWS Fargate usage in exchange for a commitment to use a specific amount of compute usage (measure in dollars per hour) for a one or three year term.
Supported Configurations
CPU |
Memory Values |
---|---|
0.25 vCPU | 0.5GB, 1GB, and 2GB |
0.5 vCPU | Min. 1GB and Max. 4GB, in 1GB increments |
1 vCPU | Min. 2GB and Max. 8GB, in 1GB increments |
2 vCPU | Min. 4GB and Max. 16GB, in 1GB increments |
4 vCPU | Min. 8GB and Max. 30GB, in 1GB increments |
Duration
Pricing is per second with a 1-minute minimum. Duration is calculated from the time you start to download your container image (docker pull) until the Task terminates, rounded up to the nearest second.
Additional Charges
You may incur additional charges if your containers use other AWS services or transfers data. For example, if your containers use Amazon CloudWatch Logs for application logging, you are billed for CloudWatch usage.
For more information about AWS service pricing, see the pricing section of the relevant AWS service detail pages. Links to pricing for some of the commonly used services are listed below.
Data Transfer: You are billed at standard AWS data transfer rates.
Pricing Examples
Example 1
For example, your service uses 5 ECS Tasks, running for 10 minutes (600 seconds) every day for a 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 (seconds) x # of days
Total vCPU charges = 5 x 1 x 0.000011244 x 600 x 30 = $1.01
Monthly memory charges
Total memory charges = # of Tasks x memory in GB x price per GB x memory duration per day (seconds) x # of days
Total memory charges = 5 x 2 x 0.000001235 x 600 x 30 = $0.22
Monthly Fargate compute charges
Monthly Fargate compute charges = monthly CPU charges + monthly memory charges
Monthly Fargate compute charges = $1.01 + $0.22 = $1.23
Example 2
For example, your service uses 10 ECS Tasks running for 1 hour (3600 seconds) every day for a month (30 days) where each ECS Task uses 0.25 vCPU and 1GB memory.
Monthly CPU charges
Total vCPU charges = # of Tasks x # vCPUs x price per CPU-second x CPU duration per day (seconds) x # of days
Total vCPU charges = 10 x 0.25 x 0.000011244 x 3600 x 30 = $3.04
Monthly memory charges
Total memory charges = # of Tasks x memory in GB x price per GB x memory duration per day (seconds) x # of days
Total memory charges = 10 x 1 x 0.000001235 x 3600 x 30 = $1.33
Monthly Fargate compute charges
Monthly Fargate compute charges = monthly CPU charges + monthly memory charges
Monthly Fargate compute charges = $3.04 + $1.33 = $4.37
Additional pricing resources
Easily calculate your monthly costs with AWS
Additional resources for switching to AWS
Discover more AWS Fargate resources