ECS Task Definitions should use in-transit encryption for EFS volumes
Checks that every EFS volume in the task definition family's latest active revision sets transitEncryption to ENABLED; revisions with no EFS volume are skipped and older revisions are not read. Without TLS, traffic between the task and the file system crosses the VPC unencrypted.
- service
- ECS
- severity
- Medium
- scope
- evaluated in every region
How to fix it
In the console
ECS → Task definitions → the family → the latest revision → Create new revision with JSON
- efsVolumeConfiguration.
transitEncryption - ENABLED on every EFS volume; leaving it out means DISABLED
- Task definition
- The new revision, on each service's Update page and in each scheduled task; running tasks keep the old one
With Terraform
resource "aws_ecs_task_definition" "this" {
family = "example"
container_definitions = jsonencode([{
name = "app"
image = var.container_image
}])
volume {
name = "data"
efs_volume_configuration {
file_system_id = var.efs_file_system_id
transit_encryption = "ENABLED"
}
}
}
See which of your accounts this check is failing on.
Book a live scan