AWS Bites

72. How do you save cost with ECS?

Mar 17, 2023
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

ECS Modes and Concepts

  • ECS has three modes: EC2 for managing instances yourself, Fargate for serverless containers, and ECS Anywhere for on-premises hardware.
  • A task in ECS runs one or more containers defined by a task definition; services manage scaling and deployment of tasks.
INSIGHT

ECS Pricing Differences

  • ECS on EC2 incurs cost only for EC2 instances, no extra ECS charge, while Fargate charges based on vCPU and memory reserved.
  • Windows containers on Fargate add license fees, unlike Linux which has no extra licensing costs.
ADVICE

Use ARM and Spot for Savings

  • Use ARM (Graviton) processors to reduce ECS compute cost by up to 20%, often with better performance.
  • Leverage Spot instances for sizable savings: up to 70% with Fargate Spot and up to 90% with EC2 Spot, but expect price variability.
Get the Snipd Podcast app to discover more snips from this episode
Get the app