The mental model
Fargate provides compute capacity for ECS tasks or supported EKS pods without making you operate the host fleet. In ECS, each Fargate task runs in an isolated virtual environment with dedicated infrastructure capacity. Separate tasks do not share their network interface, ephemeral storage, CPU, or memory. Multiple containers inside one task do share task resources; a sidecar is not a separate tenant boundary.
For ECS Fargate, awsvpc networking gives the task its own network interface. You still choose security groups, ingress and egress paths, workload permissions, image contents, logging, and data access. Privileged containers and host access are restricted. A compromised application can still use the task’s permitted credentials and network paths, so managed isolation does not replace least privilege or application security.
Decisions to make
- Separate mutually untrusted workloads into separate tasks rather than colocating them as sidecars.
- Choose CPU, memory, task duration, storage, and network paths from measured needs and current Fargate pricing.
Design exercise · no AWS resources needed
Work through a scenario
Two customers upload plugins that a service runs beside a privileged application component.
- Draw the containers currently sharing one ECS task and its task role.
- Redesign the tenant boundary and remove unnecessary permissions and egress.
- Identify host-level or privileged requirements that prevent a workload from fitting Fargate.
Check your understanding
Are two containers in the same ECS Fargate task separate task-level isolation boundaries?
Choose an answer to see the reasoning.
Continue with AWS documentation
- Fargate security considerations (opens in a new tab)
- Fargate tasks and services (opens in a new tab)
- Current Fargate pricing (opens in a new tab)
Before following a deployment guide, review current pricing, permissions, and cleanup steps. Budget alerts are not a hard spending cap.