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

  1. Separate mutually untrusted workloads into separate tasks rather than colocating them as sidecars.
  2. 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.

  1. Draw the containers currently sharing one ECS task and its task role.
  2. Redesign the tenant boundary and remove unnecessary permissions and egress.
  3. 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?

Continue with AWS documentation

Before following a deployment guide, review current pricing, permissions, and cleanup steps. Budget alerts are not a hard spending cap.

Saved in this browser. Press again to undo.

Prepaid · USD

Top up balance

Available balance: $0.00

Your balance works across Heap tools. A failed lookup or generation releases its reserved amount.