concept

Fargate, EC2 and capacity providers

Fargate, Fargate Spot, self-managed EC2 and ECS Managed Instances supply distinct compute options.

Formal Syntax & Structure

aws syntaxaws
capacity provider strategy: capacityProvider, base, weight

Working Example

Example Snippetaws
FARGATE: base 1, weight 1; FARGATE_SPOT: weight 1
AWS Reference