Skip to Content
Asterrr's Handbook
Service cheat sheetsSecurity and identity cheat sheets

AWS Fargate

Serverless container compute for ECS and EKS and the security properties that follow from it.

Fargate runs ECS tasks and EKS pods without EC2 instances to patch or manage. AWS owns the host. You own the image, the task role and the network rules.

scanpullsecretawslogsECR imageInspector scanFargate taskCloudWatch LogsSecrets Manager
Each Fargate task gets its own network interface. Image scanning and logging sit around the task.

Security facts

ItemFact
Network modeECS on Fargate requires awsvpc. Each task has its own ENI, so security groups apply per task.
SizingCPU and memory are set at the task level.
Ephemeral storagePlatform 1.4.0 or later gives each task at least 20 GiB, up to 200 GiB. Encrypted with AES-256 using an AWS owned key or your customer managed key.
Log driversawslogs, splunk, firelens, fluentd.
Host accessNone. AWS manages the host, so you do not patch or log in to it.
Platform updatesUpdate the service and force a new deployment to move running tasks to a new platform version.

Legacy

Some older material states 10 GB of Docker layer storage plus 4 GB of volume. That applies only to platform version 1.3.0 and earlier.

Exam signal

"Reduce operational burden of patching container hosts" points to Fargate. Pair it with Inspector for image CVEs and a least-privilege task role.

Inspector, Secrets Manager

Further reading

On this page