Description
Use TransitEncryption to protect the connection when ECS mounts an EFS volume. TLS is required when using EFS IAM authorization or an EFS access point.
Potential impact
Even when stored files are encrypted, a mount without TLS can expose file data to interception or modification in transit.
Remediation
Set TransitEncryption: ENABLED in EFSVolumeConfiguration and deploy the new task-definition revision. Verify mounting, reads and writes from the task. Manage network access, file permissions and encryption at rest separately.
Examples
Replace fs-1234 with the file system ID. Supply a container mount point for myEfsVolume and the remaining task and network settings.
Before
json
{
"Resources": {
"TaskDefinition": {
"Type": "AWS::ECS::TaskDefinition",
"Properties": {
"Volumes": [
{
"Name": "myEfsVolume",
"EFSVolumeConfiguration": {
"FileSystemId": "fs-1234",
"TransitEncryption": "DISABLED"
}
}
]
}
}
}
}
After
json
{
"Resources": {
"TaskDefinition": {
"Type": "AWS::ECS::TaskDefinition",
"Properties": {
"Volumes": [
{
"Name": "myEfsVolume",
"EFSVolumeConfiguration": {
"FileSystemId": "fs-1234",
"TransitEncryption": "ENABLED"
}
}
]
}
}
}
}