100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace
Cloud

AWS Fargate Spot

IntermediateService10.9K learners

AWS Fargate Spot is a pricing option for AWS Fargate that runs containerized tasks on spare compute capacity at up to a 70 percent discount compared to standard Fargate pricing, in exchange for the possibility that AWS may interrupt tasks…

Definition

AWS Fargate Spot is a pricing option for AWS Fargate that runs containerized tasks on spare compute capacity at up to a 70 percent discount compared to standard Fargate pricing, in exchange for the possibility that AWS may interrupt tasks with a two-minute warning when that capacity is needed elsewhere.

Overview

AWS Fargate is a serverless compute engine for containers that removes the need to provision or manage EC2 instances for running ECS or EKS workloads. Fargate Spot extends this model by letting customers run interruptible tasks on spare AWS capacity at a substantial discount, following the same underlying economic model as EC2 Spot Instances but abstracted away from any instance management, since Fargate itself has no visible servers to interrupt — only the tasks running on it. When AWS needs to reclaim Spot capacity, it sends a two-minute interruption notice to the affected task via Amazon EventBridge before stopping it, giving applications a short window to gracefully drain connections, checkpoint state, or hand off work. Because interruption is possible at any time, Fargate Spot is designed for fault-tolerant, stateless, or checkpointable workloads rather than long-running stateful services that cannot tolerate sudden termination. Fargate Spot is configured per capacity provider within an ECS cluster, and tasks can use a capacity provider strategy that mixes standard Fargate and Fargate Spot — for example, running a baseline of on-demand Fargate tasks for guaranteed availability while scaling additional capacity on Fargate Spot to absorb traffic spikes cost-effectively. This blended approach is a common pattern for balancing cost savings against reliability requirements. Typical suitable workloads include batch processing jobs, CI/CD build runners, image and video processing pipelines, and other tasks that can be retried or resumed if interrupted, where the discount meaningfully reduces total compute spend without threatening availability of user-facing services.

Key Features

  • Runs Fargate tasks on spare AWS capacity at up to ~70% discount
  • Provides a two-minute interruption warning via Amazon EventBridge
  • No EC2 instances to manage — Fargate abstracts the underlying servers
  • Configured as a capacity provider within an ECS cluster
  • Can be blended with standard Fargate using capacity provider strategies
  • Best suited for fault-tolerant, stateless, or checkpointable workloads
  • Available for Amazon ECS; not identical to EC2 Spot pricing mechanics
  • Requires no bidding — pricing is a fixed discount off standard Fargate rates

Use Cases

Batch data processing jobs that can be retried on interruption
CI/CD build and test runners with short task durations
Video, image, or media transcoding pipelines
Non-critical background job queues
Scaling out capacity cost-effectively during traffic spikes
Machine learning batch inference jobs
Load testing and ephemeral development environments

Alternatives

EC2 Spot Instances · AWSStandard AWS Fargate (on-demand) · AWSGoogle Cloud Run (with retries) · Google

Frequently Asked Questions