Skip to content

EFS volumes in ECS task definitions do not have encryption in transit enabled

Description

This check examines ECS tasks, and checks the definitions for EFS and if attached that the transit is encrypted.

Code Example

go
resource "aws_ecs_task_definition" "example" {
  ...
  family                = "service"
  volume {
        ...
+     transit_encryption      = "ENABLED"
      }
    }
  }
  ...
}

Remediation

AWS Console

TBA === Fix - Buildtime

Terraform

  • Resource: aws_ecs_task_definition
  • Arguments: efs_volume_configuration/transit_encryption needs to ENABLED if there is an attached EFS.

Rule Details

FieldValue
IDIAC-0150
SeverityHIGH
IaC TypeCloudformation
FrameworksCloudFormation, Terraform, TerraformPlan, Serverless
Checkov IDCKV_AWS_97

References